From 30f97814880d16aff94732afbd2be8ec7c43f5c0 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 10 May 1999 03:46:38 +0000 Subject: [PATCH] (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 --- lib/krb5/sendauth.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/krb5/sendauth.c b/lib/krb5/sendauth.c index fad75dee4..5faabbf75 100644 --- a/lib/krb5/sendauth.c +++ b/lib/krb5/sendauth.c @@ -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)