From: Tom Yu Date: Mon, 21 Jul 2008 16:08:33 +0000 (+0000) Subject: pull up r20527 from trunk X-Git-Tag: kfw-3.2.3-alpha1~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eb86ef0d3cf4484e42280c54a770175f71af1c80;p=krb5.git pull up r20527 from trunk r20527@cathode-dark-space: tlyu | 2008-07-15 17:43:35 -0400 ticket: new subject: krb5_get_cred_via_tkt() should null out_cred on errors tags: pullup target_version: 1.6.4 component: krb5-libs Helper function krb5_kdcrep2creds(), called from krb5_get_cred_via_tkt(), should null its output pointer after freeing allocated memory, to avoid returning an invalid pointer. ticket: 6033 status: resolved version_fixed: 1.6.4 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@20550 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/gc_via_tkt.c b/src/lib/krb5/krb/gc_via_tkt.c index aab347fc5..d622f9588 100644 --- a/src/lib/krb5/krb/gc_via_tkt.c +++ b/src/lib/krb5/krb/gc_via_tkt.c @@ -100,6 +100,7 @@ cleanup_keyblock: cleanup: free (*ppcreds); + *ppcreds = NULL; return retval; }