From 071d09ace7fdbda3c83e9be6434c16c2f9507963 Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Wed, 11 May 2016 13:24:21 -0500 Subject: 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) --- sys/crypto/aesni/aesni.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.1