]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix hostapd debug messages on wpa_pairwise and rsn_pairwise parsing
authorJouni Malinen <j@w1.fi>
Fri, 22 Sep 2017 12:23:00 +0000 (15:23 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 22 Sep 2017 15:43:41 +0000 (18:43 +0300)
Incorrect value was printed out as the line number for this messages.

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

index 880998bed9c39a9384a24c65a896358582ae5373..5f1032fb110e7d8a9f114f05b869c504463b317d 100644 (file)
@@ -2628,7 +2628,7 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                if (bss->wpa_pairwise &
                    (WPA_CIPHER_NONE | WPA_CIPHER_WEP40 | WPA_CIPHER_WEP104)) {
                        wpa_printf(MSG_ERROR, "Line %d: unsupported pairwise cipher suite '%s'",
-                                  bss->wpa_pairwise, pos);
+                                  line, pos);
                        return 1;
                }
        } else if (os_strcmp(buf, "rsn_pairwise") == 0) {
@@ -2638,7 +2638,7 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                if (bss->rsn_pairwise &
                    (WPA_CIPHER_NONE | WPA_CIPHER_WEP40 | WPA_CIPHER_WEP104)) {
                        wpa_printf(MSG_ERROR, "Line %d: unsupported pairwise cipher suite '%s'",
-                                  bss->rsn_pairwise, pos);
+                                  line, pos);
                        return 1;
                }
 #ifdef CONFIG_RSN_PREAUTH