From: Jouni Malinen Date: Sun, 7 Dec 2014 21:58:06 +0000 (+0200) Subject: Fix DUP_NETWORK debug print on error case X-Git-Tag: hostap_2_4~885 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c05419060399efd918ea789fb8f660a86de9fd09;p=thirdparty%2Fhostap.git Fix DUP_NETWORK debug print on error case Incorrect network id was printed in debug output if DUP_NETWORK destination network was not found. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 6bc9d8830..a70d2b538 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -2878,7 +2878,7 @@ static int wpa_supplicant_ctrl_iface_dup_network( ssid_d = wpa_config_get_network(wpa_s->conf, id_d); if (ssid_d == NULL) { wpa_printf(MSG_DEBUG, "CTRL_IFACE: Could not find " - "network id=%d", id_s); + "network id=%d", id_d); return -1; }