From 32c9f00189f5fd766ffd2dae91d4b65ff30989a9 Mon Sep 17 00:00:00 2001 From: toddouska Date: Fri, 27 Mar 2015 15:38:01 -0700 Subject: [PATCH] only alloc poly auth size if cipher suite needs it --- src/keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keys.c b/src/keys.c index 3de9b89c4..109e110c4 100644 --- a/src/keys.c +++ b/src/keys.c @@ -2366,7 +2366,7 @@ int SetKeysSide(WOLFSSL* ssl, enum encrypt_side side) } #ifdef HAVE_ONE_TIME_AUTH - if (!ssl->auth.setup) { + if (!ssl->auth.setup && ssl->specs.bulk_cipher_algorithm == wolfssl_chacha){ ret = SetAuthKeys(&ssl->auth, keys, &ssl->specs, ssl->heap, devId); if (ret != 0) return ret;