mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
atheros: Deinit l2_packet sock_xmit on error path
This commit is contained in:
parent
8421e95c71
commit
4a46e82fb4
@ -1188,6 +1188,8 @@ madwifi_init(struct hostapd_data *hapd, struct wpa_init_params *params)
|
||||
|
||||
return drv;
|
||||
bad:
|
||||
if (drv->sock_recv != NULL && drv->sock_recv != drv->sock_xmit)
|
||||
l2_packet_deinit(drv->sock_recv);
|
||||
if (drv->sock_xmit != NULL)
|
||||
l2_packet_deinit(drv->sock_xmit);
|
||||
if (drv->ioctl_sock >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user