Parcourir la source

Fix error messages to print ASCII MAC address, not the parse buffer

Jouni Malinen il y a 15 ans
Parent
commit
a7b6c42232
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      wpa_supplicant/ctrl_iface.c

+ 3 - 3
wpa_supplicant/ctrl_iface.c

@@ -119,7 +119,7 @@ static int wpa_supplicant_ctrl_iface_stkstart(
 
 	if (hwaddr_aton(addr, peer)) {
 		wpa_printf(MSG_DEBUG, "CTRL_IFACE STKSTART: invalid "
-			   "address '%s'", peer);
+			   "address '%s'", addr);
 		return -1;
 	}
 
@@ -141,7 +141,7 @@ static int wpa_supplicant_ctrl_iface_ft_ds(
 
 	if (hwaddr_aton(addr, target_ap)) {
 		wpa_printf(MSG_DEBUG, "CTRL_IFACE FT_DS: invalid "
-			   "address '%s'", target_ap);
+			   "address '%s'", addr);
 		return -1;
 	}
 
@@ -343,7 +343,7 @@ static int wpa_supplicant_ctrl_iface_ibss_rsn(
 
 	if (hwaddr_aton(addr, peer)) {
 		wpa_printf(MSG_DEBUG, "CTRL_IFACE IBSS_RSN: invalid "
-			   "address '%s'", peer);
+			   "address '%s'", addr);
 		return -1;
 	}