mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
dbus: Fix segfault when receiving a property access call that isn't permitted.
This commit is contained in:
parent
ad7c8ebff5
commit
acaeb71cf8
1 changed files with 2 additions and 2 deletions
|
|
@ -406,7 +406,7 @@ static enum find_result_t find_handler_from_properties_call(struct call_info *ca
|
||||||
return NO_SUCH_PROPERTY_INTERFACE;
|
return NO_SUCH_PROPERTY_INTERFACE;
|
||||||
else if ((call_info->property_handler =
|
else if ((call_info->property_handler =
|
||||||
pa_hashmap_get(call_info->iface_entry->property_handlers, call_info->property)))
|
pa_hashmap_get(call_info->iface_entry->property_handlers, call_info->property)))
|
||||||
return FOUND_GET_PROPERTY;
|
return call_info->property_handler->get_cb ? FOUND_GET_PROPERTY : PROPERTY_ACCESS_DENIED;
|
||||||
else
|
else
|
||||||
return NO_SUCH_PROPERTY;
|
return NO_SUCH_PROPERTY;
|
||||||
|
|
||||||
|
|
@ -440,7 +440,7 @@ static enum find_result_t find_handler_from_properties_call(struct call_info *ca
|
||||||
call_info->expected_property_sig = call_info->property_handler->type;
|
call_info->expected_property_sig = call_info->property_handler->type;
|
||||||
|
|
||||||
if (pa_streq(call_info->property_sig, call_info->expected_property_sig))
|
if (pa_streq(call_info->property_sig, call_info->expected_property_sig))
|
||||||
return FOUND_SET_PROPERTY;
|
return call_info->property_handler->set_cb ? FOUND_SET_PROPERTY : PROPERTY_ACCESS_DENIED;
|
||||||
else
|
else
|
||||||
return INVALID_PROPERTY_SIG;
|
return INVALID_PROPERTY_SIG;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue