(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:
Assar Westerlund
1999-05-10 03:46:38 +00:00
parent 84b1b4cd96
commit 30f9781488

View File

@@ -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)