mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-24 06:52:37 +01:00
sha1: Return right away if l_checksum_new fails
This commit is contained in:
parent
d277456852
commit
b27c47aa77
@ -80,6 +80,8 @@ bool hmac_sha1(const void *key, size_t key_len,
|
||||
struct l_checksum *checksum;
|
||||
|
||||
checksum = l_checksum_new(L_CHECKSUM_SHA1);
|
||||
if (!checksum)
|
||||
return false;
|
||||
|
||||
__hmac_sha1(checksum, key, key_len, data, data_len, output, size);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user