Verify that os_get_random() success for SA Query id
This commit is contained in:
parent
4a5869206e
commit
f5455a2dbd
1 changed files with 2 additions and 2 deletions
|
@ -165,10 +165,10 @@ static int hostapd_ctrl_iface_sa_query(struct hostapd_data *hapd,
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "CTRL_IFACE SA_QUERY %s", txtaddr);
|
wpa_printf(MSG_DEBUG, "CTRL_IFACE SA_QUERY %s", txtaddr);
|
||||||
|
|
||||||
if (hwaddr_aton(txtaddr, addr))
|
if (hwaddr_aton(txtaddr, addr) ||
|
||||||
|
os_get_random(trans_id, WLAN_SA_QUERY_TR_ID_LEN) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
os_get_random(trans_id, WLAN_SA_QUERY_TR_ID_LEN);
|
|
||||||
ieee802_11_send_sa_query_req(hapd, addr, trans_id);
|
ieee802_11_send_sa_query_req(hapd, addr, trans_id);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue