Fix gss_set_cred_option cred creation with no name
authorGreg Hudson <ghudson@mit.edu>
Fri, 22 Jul 2011 16:56:36 +0000 (16:56 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 22 Jul 2011 16:56:36 +0000 (16:56 +0000)
commitbd18687a705a8a6cdcb7c140764d1a7c6a3381b5
tree13e38b05184ab2461e44446de8dc50d34c7fa771
parent648e4b9fa3f36f10e517b4e6b80329980603d17c
Fix gss_set_cred_option cred creation with no name

When creating a cred in the mechglue with gss_acquire_cred, the
mechanism is allowed to return no name from gss_inquire_cred.  But in
the analagous operation in gss_set_cred_option, that would result in
an error from gss_display_name.  Make the call to gss_display_name
conditional on the mechanism name being set.  Reported by Andrew
Bartlett.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25037 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/gssapi/mechglue/g_set_cred_option.c