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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-12-07 23:58:06 +02:00
parent 146374019a
commit c054190603

View 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;
}