aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface_unix.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-10-26 10:18:40 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-26 12:55:59 (GMT)
commit29179b881ed35ec351d663980176717d33bed65e (patch)
tree4eac03e2d41460a3453f769d33fea625d010c1bc /wpa_supplicant/ctrl_iface_unix.c
parenta2a535f897846fe83b3cab07a329ea11af969031 (diff)
downloadhostap-29179b881ed35ec351d663980176717d33bed65e.zip
hostap-29179b881ed35ec351d663980176717d33bed65e.tar.gz
hostap-29179b881ed35ec351d663980176717d33bed65e.tar.bz2
Stop ctrl_iface monitor send loop on reinit failure
There is no point trying to continue sending messages with sendmsg() if socket reinitialization fails. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ctrl_iface_unix.c')
-rw-r--r--wpa_supplicant/ctrl_iface_unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c
index 5fe9a4e..7135d06 100644
--- a/wpa_supplicant/ctrl_iface_unix.c
+++ b/wpa_supplicant/ctrl_iface_unix.c
@@ -724,6 +724,7 @@ static void wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s,
if (sock < 0) {
wpa_dbg(wpa_s, MSG_DEBUG,
"Failed to reinitialize ctrl_iface socket");
+ break;
}
}
}