Fix DUP_NETWORK debug print on error case
authorJouni Malinen <j@w1.fi>
Sun, 7 Dec 2014 21:58:06 +0000 (23:58 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 8 Dec 2014 09:42:07 +0000 (11:42 +0200)
Incorrect network id was printed in debug output if DUP_NETWORK
destination network was not found.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/ctrl_iface.c

index 6bc9d88..a70d2b5 100644 (file)
@@ -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;
        }