Fixed NULL pointer dereference on error path [Bug 273]
This commit is contained in:
parent
6652b61cd4
commit
b0f23e11ed
1 changed files with 1 additions and 1 deletions
|
@ -1204,7 +1204,7 @@ madwifi_init(struct hostapd_data *hapd)
|
||||||
drv = os_zalloc(sizeof(struct madwifi_driver_data));
|
drv = os_zalloc(sizeof(struct madwifi_driver_data));
|
||||||
if (drv == NULL) {
|
if (drv == NULL) {
|
||||||
printf("Could not allocate memory for madwifi driver data\n");
|
printf("Could not allocate memory for madwifi driver data\n");
|
||||||
goto bad;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
drv->hapd = hapd;
|
drv->hapd = hapd;
|
||||||
|
|
Loading…
Reference in a new issue