diff options
author | Ezra Peisach <epeisach@mit.edu> | 2009-06-17 17:51:31 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2009-06-17 17:51:31 +0000 |
commit | d32531edac750e434365d45e1e6c5851cff15c52 (patch) | |
tree | d42eccc327854aae1c59b4b6443c1ba27fb26c52 /src/lib | |
parent | abf934e1108e0a35042f17b2a5505586aa03b278 (diff) | |
download | krb5-d32531edac750e434365d45e1e6c5851cff15c52.tar.gz krb5-d32531edac750e434365d45e1e6c5851cff15c52.tar.xz krb5-d32531edac750e434365d45e1e6c5851cff15c52.zip |
In the previous patch - I neglected a potential NULL deref in the call
to krb5int_yarrow_cipher_final. Trivial fix.
ticket: 6512
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22413 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/crypto/yarrow/yarrow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/crypto/yarrow/yarrow.c b/src/lib/crypto/yarrow/yarrow.c index 9e3c91588..ff25fa9c5 100644 --- a/src/lib/crypto/yarrow/yarrow.c +++ b/src/lib/crypto/yarrow/yarrow.c @@ -917,9 +917,11 @@ int krb5int_yarrow_final(Yarrow_CTX* y) #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; } |