aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-09-05 10:03:26 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-05 10:03:26 (GMT)
commit4a46e82fb47499f7c89fae855d0670c713c8330c (patch)
treebeb63be87b1f20594ad7914b1330c24ee3721877 /src/drivers/driver_atheros.c
parent8421e95c712e10fca768ee8bfe3d334cba6a9d12 (diff)
downloadhostap-4a46e82fb47499f7c89fae855d0670c713c8330c.zip
hostap-4a46e82fb47499f7c89fae855d0670c713c8330c.tar.gz
hostap-4a46e82fb47499f7c89fae855d0670c713c8330c.tar.bz2
atheros: Deinit l2_packet sock_xmit on error path
Diffstat (limited to 'src/drivers/driver_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index a146114..b7c630a 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -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)