projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Handle NULL return from os_zalloc() in sta_track_add()
[mech_eap.git]
/
src
/
crypto
/
aes-siv.c
diff --git
a/src/crypto/aes-siv.c
b/src/crypto/aes-siv.c
index
0a82ddc
..
5ac82c2
100644
(file)
--- a/
src/crypto/aes-siv.c
+++ b/
src/crypto/aes-siv.c
@@
-95,7
+95,7
@@
static int aes_s2v(const u8 *key, size_t num_elem, const u8 *addr[],
os_memcpy(buf, addr[i], len[i]);
xorend(buf, len[i], tmp, AES_BLOCK_SIZE);
ret = omac1_aes_128(key, buf, len[i], mac);
-
os_free(buf
);
+
bin_clear_free(buf, len[i]
);
return ret;
}