krb5_rd_rep could leak memory through its output parameter on error.
authorGreg Hudson <ghudson@mit.edu>
Mon, 4 May 2009 16:08:03 +0000 (16:08 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 4 May 2009 16:08:03 +0000 (16:08 +0000)
commit7685f0567cf5c79d99737d34384a3122245dc533
treefc7d09f6393c2ede648c39224b4fd9e10807ef0b
parent3c84bd0ade81dff73bf55abe87c5964f4106abfd
krb5_rd_rep could leak memory through its output parameter on error.
Adjust the flow control so that *repl is NULL on error and the memory
allocated by decode_krb5_ap_rep_enc_part is freed.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22305 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/rd_rep.c