summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-05-11 13:24:21 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2016-05-12 11:02:55 -0500
commit071d09ace7fdbda3c83e9be6434c16c2f9507963 (patch)
tree0c66523ccd3a0f7672c347cce0113013f4138db8
parent28aacbb4bb8d97a81b7ce091fc51b2ab8e689cfa (diff)
downloadFreeBSD-src-071d09ace7fdbda3c83e9be6434c16c2f9507963.zip
FreeBSD-src-071d09ace7fdbda3c83e9be6434c16c2f9507963.tar.gz
MFC r298332:
aesni(4): Initialize error before use Reported by: Coverity CID: 1331554 Sponsored by: EMC / Isilon Storage Division TAG: IPSEC-HEAD (cherry picked from commit 0bfe8f207817729d5666bdea8fee38f24eacf67e)
-rw-r--r--sys/crypto/aesni/aesni.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/crypto/aesni/aesni.c b/sys/crypto/aesni/aesni.c
index 602247a..aa0a73c 100644
--- a/sys/crypto/aesni/aesni.c
+++ b/sys/crypto/aesni/aesni.c
@@ -535,6 +535,7 @@ aesni_cipher_process(struct aesni_session *ses, struct cryptodesc *enccrd,
if (buf == NULL)
return (ENOMEM);
+ error = 0;
authbuf = NULL;
authallocated = 0;
if (authcrd != NULL) {
OpenPOWER on IntegriCloud