hostapd: Fix deinit on initialization failure
authorJouni Malinen <j@w1.fi>
Sun, 3 Jan 2010 08:54:14 +0000 (10:54 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 3 Jan 2010 08:54:14 +0000 (10:54 +0200)
hostapd/main.c

index 71dfdc9..00ce22d 100644 (file)
@@ -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);