mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
dbus: Do not try to unregister not-yet-registered network object
This commit is contained in:
parent
c5b26e33c1
commit
c91278a5b4
@ -1073,7 +1073,8 @@ int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, int nid)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Do nothing if the control interface is not turned on */
|
/* Do nothing if the control interface is not turned on */
|
||||||
if (wpa_s == NULL || wpa_s->global == NULL)
|
if (wpa_s == NULL || wpa_s->global == NULL ||
|
||||||
|
wpa_s->dbus_new_path == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
ctrl_iface = wpa_s->global->dbus;
|
ctrl_iface = wpa_s->global->dbus;
|
||||||
if (ctrl_iface == NULL)
|
if (ctrl_iface == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user