krb5int_yarrow_final could deref NULL if out of memory
authorEzra Peisach <epeisach@mit.edu>
Thu, 11 Jun 2009 17:01:13 +0000 (17:01 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 11 Jun 2009 17:01:13 +0000 (17:01 +0000)
commit2ba32d69322ac7d2b1b8c7b02d996f2ec02d9e59
tree2a33dd56e019dd0b2cacbd27a3437fdff40d8aae
parentccdee10e6b9c218f3e82e5987d716bfb7cbb1c90
krb5int_yarrow_final could deref NULL if out of memory

 krb5int_yarrow_final tests if the Yarrow_CTX* is valid (not NULL) -
 and if not - signals and error for return - but still invokes
 mem_zero (memset) with it as an argument.  This will only happen in
 an out-of-memory situation.

ticket: 6512

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22410 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/crypto/yarrow/yarrow.c