svn commit: r298332 - head/sys/crypto/aesni

Conrad E. Meyer cem at FreeBSD.org
Wed Apr 20 03:05:34 UTC 2016


Author: cem
Date: Wed Apr 20 03:05:32 2016
New Revision: 298332
URL: https://svnweb.freebsd.org/changeset/base/298332

Log:
  aesni(4): Initialize error before use
  
  Reported by:	Coverity
  CID:		1331554
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/crypto/aesni/aesni.c

Modified: head/sys/crypto/aesni/aesni.c
==============================================================================
--- head/sys/crypto/aesni/aesni.c	Wed Apr 20 02:58:22 2016	(r298331)
+++ head/sys/crypto/aesni/aesni.c	Wed Apr 20 03:05:32 2016	(r298332)
@@ -534,6 +534,7 @@ aesni_cipher_process(struct aesni_sessio
 	if (buf == NULL)
 		return (ENOMEM);
 
+	error = 0;
 	authbuf = NULL;
 	authallocated = 0;
 	if (authcrd != NULL) {


More information about the svn-src-head mailing list