svn rev #22413: trunk/src/lib/crypto/yarrow/

epeisach@MIT.EDU epeisach at MIT.EDU
Wed Jun 17 13:51:31 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22413
Commit By: epeisach
Log Message:
ticket: 6512

In the previous patch - I neglected a potential NULL deref in the call
to krb5int_yarrow_cipher_final.  Trivial fix.





Changed Files:
U   trunk/src/lib/crypto/yarrow/yarrow.c
Modified: trunk/src/lib/crypto/yarrow/yarrow.c
===================================================================
--- trunk/src/lib/crypto/yarrow/yarrow.c	2009-06-17 15:08:25 UTC (rev 22412)
+++ trunk/src/lib/crypto/yarrow/yarrow.c	2009-06-17 17:51:31 UTC (rev 22413)
@@ -917,9 +917,11 @@
 #endif
 
  CATCH:
-    krb5int_yarrow_cipher_final(&y->cipher);
     if ( y ) 
+    {
+	krb5int_yarrow_cipher_final(&y->cipher);
 	mem_zero( y, sizeof(Yarrow_CTX) );
+    }
     if ( locked ) { TRY( UNLOCK() ); }
     EXCEP_RET;
 }




More information about the cvs-krb5 mailing list