From 07c870df55d29ff7f9d7b9f5cf66ba8efd0028a5 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 14 Nov 2018 15:12:50 -0800 Subject: [PATCH] station: only set 8021x config on 8021x networks During the handshake setup, if security != SECURITY_PSK then 8021x settings would get set in the handshake object. This didn't appear to break anything (e.g. Open/WEP) but its better to explicitly check that we are setting up an 8021x network. --- src/station.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station.c b/src/station.c index 30f47b54..70abe116 100644 --- a/src/station.c +++ b/src/station.c @@ -544,7 +544,7 @@ static struct handshake_state *station_handshake_setup(struct station *station, else handshake_state_set_pmk(hs, network_get_psk(network), 32); - } else + } else if (security == SECURITY_8021X) handshake_state_set_8021x_config(hs, network_get_settings(network));