Browse Source

Do not forget wpa_passphrase so that WPS can use it

Send ASCII passphrase instead of derived PSK if the configuration uses
the passphrase.
Jouni Malinen 16 years ago
parent
commit
7ce3304ab3
1 changed files with 0 additions and 5 deletions
  1. 0 5
      hostapd/config.c

+ 0 - 5
hostapd/config.c

@@ -476,11 +476,6 @@ int hostapd_setup_wpa_psk(struct hostapd_bss_config *conf)
 		wpa_hexdump(MSG_DEBUG, "PSK (from passphrase)",
 			    ssid->wpa_psk->psk, PMK_LEN);
 		ssid->wpa_psk->group = 1;
-
-		os_memset(ssid->wpa_passphrase, 0,
-			  os_strlen(ssid->wpa_passphrase));
-		os_free(ssid->wpa_passphrase);
-		ssid->wpa_passphrase = NULL;
 	}
 
 	if (ssid->wpa_psk_file) {