dbus_new_handlers: Omit errant dbus_message_unref
This unref is guaranteed to be freeing a NULL pointer. Tested manually: use dbus-send to send an invalid debug level parameter Before change: $ dbus-send --system --dest=fi.w1.wpa_supplicant1 --print-reply /fi/w1/wpa_supplicant1 org.freedesktop.DBus.Properties.Set string:fi.w1.wpa_supplicant1 string:DebugLevel variant:string:msgdumpf Error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus) (and then wpa_supplicant crashes) After change: $ dbus-send --system --dest=fi.w1.wpa_supplicant1 --print-reply /fi/w1/wpa_supplicant1 org.freedesktop.DBus.Properties.Set string:fi.w1.wpa_supplicant1 string:DebugLevel variant:string:msgdumpf Error fi.w1.wpa_supplicant1.InvalidArgs: Did not receive correct message arguments. Signed-off-by: Paul Stewart <pstew@google.com>
This commit is contained in:
parent
c4d7fc90a2
commit
8e5f078fb9
1 changed files with 0 additions and 1 deletions
|
@ -803,7 +803,6 @@ DBusMessage * wpas_dbus_setter_debug_level(DBusMessage *message,
|
|||
if (val < 0 ||
|
||||
wpa_supplicant_set_debug_params(global, val, wpa_debug_timestamp,
|
||||
wpa_debug_show_keys)) {
|
||||
dbus_message_unref(reply);
|
||||
return wpas_dbus_error_invalid_args(
|
||||
message, "Wrong debug level value");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue