aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ibss_rsn.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-04-14 17:18:12 (GMT)
committerJouni Malinen <j@w1.fi>2011-04-14 17:18:12 (GMT)
commit4a26df71078cc0587a34cdd1c2b71f09a873e7b1 (patch)
treec3c355e707be59ee15df50b99e1b4b7cc2596c40 /wpa_supplicant/ibss_rsn.c
parentc8d88a145bb1d585eb8864c994e171a49c4ab882 (diff)
downloadhostap-4a26df71078cc0587a34cdd1c2b71f09a873e7b1.zip
hostap-4a26df71078cc0587a34cdd1c2b71f09a873e7b1.tar.gz
hostap-4a26df71078cc0587a34cdd1c2b71f09a873e7b1.tar.bz2
IBSS RSN: peer->addr is an array so it cannot be NULL
Diffstat (limited to 'wpa_supplicant/ibss_rsn.c')
-rw-r--r--wpa_supplicant/ibss_rsn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c
index 9789d32..0d7d568 100644
--- a/wpa_supplicant/ibss_rsn.c
+++ b/wpa_supplicant/ibss_rsn.c
@@ -132,7 +132,7 @@ static int supp_set_key(void *ctx, enum wpa_alg alg,
}
}
- if (is_broadcast_ether_addr(addr) && peer->addr)
+ if (is_broadcast_ether_addr(addr))
addr = peer->addr;
return wpa_drv_set_key(peer->ibss_rsn->wpa_s, alg, addr, key_idx,
set_tx, seq, seq_len, key, key_len);