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-11 17:02:17 -0500 |
commit | 0bfe8f207817729d5666bdea8fee38f24eacf67e (patch) | |
tree | ca6724520bad557b5ccf11257a8093d6b5085d1f | |
parent | a7ce017c2848df1f6ccac912b14d32c38a74c3b8 (diff) | |
download | FreeBSD-src-0bfe8f207817729d5666bdea8fee38f24eacf67e.zip FreeBSD-src-0bfe8f207817729d5666bdea8fee38f24eacf67e.tar.gz |
MFC r298332:
aesni(4): Initialize error before use
Reported by: Coverity
CID: 1331554
Sponsored by: EMC / Isilon Storage Division
TAG: IPSEC-HEAD
-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) { |