From 29179b881ed35ec351d663980176717d33bed65e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 26 Oct 2013 13:18:40 +0300 Subject: [PATCH] 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 --- wpa_supplicant/ctrl_iface_unix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c index 5fe9a4e43..7135d068d 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; } } }