(krb5_sendauth): handle ccache == NULL by setting the default ccache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6191 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -110,6 +110,12 @@ krb5_sendauth(krb5_context context,
|
||||
return KRB5_SENDAUTH_BADRESPONSE; /* XXX */
|
||||
|
||||
if (in_creds == NULL) {
|
||||
if (ccache == NULL) {
|
||||
ret = krb5_cc_default (context, &ccache);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (client == NULL) {
|
||||
ret = krb5_cc_get_principal (context, ccache, &this_client);
|
||||
if (ret)
|
||||
|
Reference in New Issue
Block a user