Handle NULL return from os_zalloc() in sta_track_add()
[mech_eap.git] / src / crypto / aes-siv.c
index 0a82ddc..5ac82c2 100644 (file)
@@ -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;
        }