mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
Close config file on error path
This commit is contained in:
parent
612162430f
commit
9a8d8b3db5
@ -1155,6 +1155,7 @@ struct hostapd_config * hostapd_config_read(const char *fname)
|
||||
if (conf->driver == NULL) {
|
||||
wpa_printf(MSG_ERROR, "No driver wrappers registered!");
|
||||
hostapd_config_free(conf);
|
||||
fclose(f);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user