Browse Source

hostapd: Fix deinit on initialization failure

Jouni Malinen 15 years ago
parent
commit
9078adfc8c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hostapd/main.c

+ 2 - 0
hostapd/main.c

@@ -279,6 +279,8 @@ static void hostapd_interface_deinit_free(struct hostapd_iface *iface)
 {
 	const struct wpa_driver_ops *driver;
 	void *drv_priv;
+	if (iface == NULL)
+		return;
 	driver = iface->bss[0]->driver;
 	drv_priv = iface->bss[0]->drv_priv;
 	hostapd_interface_deinit(iface);