aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-06 20:37:48 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-06 20:37:48 (GMT)
commit05ba8690cb296a83e0823553bcc7f7b5f8d5db30 (patch)
treed677b0f251c0705ded34272421a8c503a111eb34 /src
parent8b897f5a17739b506a7f757905594d8d3a61c3bf (diff)
downloadhostap-05ba8690cb296a83e0823553bcc7f7b5f8d5db30.zip
hostap-05ba8690cb296a83e0823553bcc7f7b5f8d5db30.tar.gz
hostap-05ba8690cb296a83e0823553bcc7f7b5f8d5db30.tar.bz2
nl80211: Unregister forgotten eloop socket on init failure
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index c74adf7..8fedff7 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -1293,6 +1293,7 @@ failed:
nl_cache_free(drv->nl_cache);
nl_handle_destroy(drv->nl_handle);
nl_cb_put(drv->nl_cb);
+ eloop_unregister_read_sock(nl_socket_get_fd(drv->nl_handle_event));
os_free(drv);
return NULL;