dbus: Fix a potential double-free in on error path (CID 62880)
It would have been at least theoretically possible to hit the first error in the loop and end up jumping to error handling which would call os_free(value) without the value having been cleared after the os_free() call at the end of the previous loop iteration. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
68e2b8882a
commit
ceb4cd89c9
1 changed files with 1 additions and 0 deletions
|
@ -271,6 +271,7 @@ dbus_bool_t set_network_properties(struct wpa_supplicant *wpa_s,
|
||||||
wpa_config_update_prio_list(wpa_s->conf);
|
wpa_config_update_prio_list(wpa_s->conf);
|
||||||
|
|
||||||
os_free(value);
|
os_free(value);
|
||||||
|
value = NULL;
|
||||||
wpa_dbus_dict_entry_clear(&entry);
|
wpa_dbus_dict_entry_clear(&entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue