diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-05-11 13:24:21 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2016-05-12 11:02:55 -0500 |
commit | 071d09ace7fdbda3c83e9be6434c16c2f9507963 (patch) | |
tree | 0c66523ccd3a0f7672c347cce0113013f4138db8 | |
parent | 28aacbb4bb8d97a81b7ce091fc51b2ab8e689cfa (diff) | |
download | FreeBSD-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.c | 1 |
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) { |