mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 00:12:36 +01:00
erp: check return of hkdf_expand
This commit is contained in:
parent
81ec93fdcc
commit
e31074b246
@ -509,8 +509,9 @@ int erp_rx_packet(struct erp_state *erp, const uint8_t *pkt, size_t len)
|
|||||||
l_put_be16(64, ptr);
|
l_put_be16(64, ptr);
|
||||||
ptr += 2;
|
ptr += 2;
|
||||||
|
|
||||||
hkdf_expand(L_CHECKSUM_SHA256, erp->r_rk, erp->cache->emsk_len,
|
if (!hkdf_expand(L_CHECKSUM_SHA256, erp->r_rk, erp->cache->emsk_len,
|
||||||
info, ptr - info, erp->rmsk, erp->cache->emsk_len);
|
info, ptr - info, erp->rmsk, erp->cache->emsk_len))
|
||||||
|
goto eap_failed;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user