krb5_get_cred_via_tkt() should null out_cred on errors
authorTom Yu <tlyu@mit.edu>
Tue, 15 Jul 2008 21:43:35 +0000 (21:43 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 15 Jul 2008 21:43:35 +0000 (21:43 +0000)
commit72a0f5dceab710bb4a634add8e90ac7acbb183df
tree25808b9722728a1c41db5f99ccca34e15b271d62
parentfa8f0f47e086a9203a279fd41412f5409eead051
krb5_get_cred_via_tkt() should null out_cred on errors

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: new
tags: pullup
target_version: 1.6.4
component: krb5-libs

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