mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Fixed NULL pointer dereference on error path [Bug 273]
This commit is contained in:
parent
6652b61cd4
commit
b0f23e11ed
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user