IBSS RSN: peer->addr is an array so it cannot be NULL

This commit is contained in:
Jouni Malinen 2011-04-14 20:18:12 +03:00 committed by Jouni Malinen
parent c8d88a145b
commit 4a26df7107

View file

@ -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);