From: Jouni Malinen Date: Fri, 18 Jul 2008 02:57:03 +0000 (+0300) Subject: Fixed NULL pointer dereference on error path [Bug 273] X-Git-Tag: hostap_0_6_4~9 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=libeap.git;a=commitdiff_plain;h=b0f23e11edb7eb3483429c7e141be57425bf4dcf Fixed NULL pointer dereference on error path [Bug 273] --- diff --git a/hostapd/driver_madwifi.c b/hostapd/driver_madwifi.c index 9c3ebff..1dd12ea 100644 --- a/hostapd/driver_madwifi.c +++ b/hostapd/driver_madwifi.c @@ -1204,7 +1204,7 @@ madwifi_init(struct hostapd_data *hapd) drv = os_zalloc(sizeof(struct madwifi_driver_data)); if (drv == NULL) { printf("Could not allocate memory for madwifi driver data\n"); - goto bad; + return NULL; } drv->hapd = hapd;