summaryrefslogtreecommitdiff
path: root/src/crypto/aes-ccm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/aes-ccm.c')
-rw-r--r--src/crypto/aes-ccm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/aes-ccm.c b/src/crypto/aes-ccm.c
index d14670db8d65f..cf227785c3ca0 100644
--- a/src/crypto/aes-ccm.c
+++ b/src/crypto/aes-ccm.c
@@ -203,7 +203,7 @@ int aes_ccm_ad(const u8 *key, size_t key_len, const u8 *nonce,
aes_encrypt_deinit(aes);
- if (os_memcmp(x, t, M) != 0) {
+ if (os_memcmp_const(x, t, M) != 0) {
wpa_printf(MSG_EXCESSIVE, "CCM: Auth mismatch");
return -1;
}