From: Jouni Malinen Date: Thu, 14 Apr 2011 17:18:12 +0000 (+0300) Subject: IBSS RSN: peer->addr is an array so it cannot be NULL X-Git-Tag: hostap-1-bp~403 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a26df71078cc0587a34cdd1c2b71f09a873e7b1;p=thirdparty%2Fhostap.git IBSS RSN: peer->addr is an array so it cannot be NULL --- diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c index 9789d32a0..0d7d568e4 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);