krb5_gss_inquire_cred can copy out uninitialized pointer
authorTom Yu <tlyu@mit.edu>
Wed, 21 Sep 2005 22:58:07 +0000 (22:58 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 21 Sep 2005 22:58:07 +0000 (22:58 +0000)
commit99c0ac2a716ee8a0dc23fa01f82a88665d8cffb9
tree293dd51cd62a66cb27bdfbb5cb0adf47352b8413
parent8e038fc69156fee66e3cef4bae2bc1af1e12e8cb
krb5_gss_inquire_cred can copy out uninitialized pointer

* inq_cred.c (krb5_gss_inquire_cred): Initialize ret_name to
NULL.  Only call kg_save_name() if ret_name is actually non-NULL.
Return GSS_C_NO_NAME for now if no principal name in the cred.
Reported by Christoph Weizen.

ticket: new
version_reported: 1.4.2
target_version: 1.4.3
tags: pullup
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17384 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/inq_cred.c