aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/driver_madwifi.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-07-18 02:57:03 (GMT)
committerJouni Malinen <j@w1.fi>2008-07-18 02:57:03 (GMT)
commitb0f23e11edb7eb3483429c7e141be57425bf4dcf (patch)
treeb24183be22f0c395f3a0f85a63c65cce4c49702c /hostapd/driver_madwifi.c
parent6652b61cd4492f42e523b89effe97c92ac148681 (diff)
downloadhostap-06-b0f23e11edb7eb3483429c7e141be57425bf4dcf.zip
hostap-06-b0f23e11edb7eb3483429c7e141be57425bf4dcf.tar.gz
hostap-06-b0f23e11edb7eb3483429c7e141be57425bf4dcf.tar.bz2
Fixed NULL pointer dereference on error path [Bug 273]
Diffstat (limited to 'hostapd/driver_madwifi.c')
-rw-r--r--hostapd/driver_madwifi.c2
1 files changed, 1 insertions, 1 deletions
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;