diff options
author | Shan Palanisamy <shanp@qca.qualcomm.com> | 2012-02-16 19:44:43 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-02-16 19:44:43 +0200 |
commit | 9e7d033ef4a17b25af5e9798c2edfc9a95a4829a (patch) | |
tree | 220ae9b8582c45e390e3c5c7a5061f40e9191184 /hostapd | |
parent | 0dcc4dc4b31d48ed32940b9adb0b9fcdcab32dc3 (diff) | |
download | external_wpa_supplicant_8_ti-9e7d033ef4a17b25af5e9798c2edfc9a95a4829a.zip external_wpa_supplicant_8_ti-9e7d033ef4a17b25af5e9798c2edfc9a95a4829a.tar.gz external_wpa_supplicant_8_ti-9e7d033ef4a17b25af5e9798c2edfc9a95a4829a.tar.bz2 |
hostapd: Make sure ctrl_iface is not initialized multiple times
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/ctrl_iface.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 0cbb483..a2e7cc5 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -989,7 +989,10 @@ int hostapd_ctrl_iface_init(struct hostapd_data *hapd) int s = -1; char *fname = NULL; - hapd->ctrl_sock = -1; + if (hapd->ctrl_sock > -1) { + wpa_printf(MSG_DEBUG, "ctrl_iface already exists!"); + return 0; + } if (hapd->conf->ctrl_interface == NULL) return 0; |