From: Derrick Brashear Date: Fri, 22 Jul 2011 19:39:49 +0000 (-0400) Subject: aklog: check ccache errors in get_user_realm X-Git-Tag: upstream/1.8.0_pre1^2~3496 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=09d1d8575ce96ef945a4fd8a99a0347f4e258c1e;p=packages%2Fo%2Fopenafs.git aklog: check ccache errors in get_user_realm if there's an error finding the specified ccache, don't bother continuing. Change-Id: I344a06c66c426c5d14dbe08ce9da0431f095349d Reviewed-on: http://gerrit.openafs.org/5069 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/aklog/aklog.c b/src/aklog/aklog.c index e052d9bda..4d53ab4e4 100644 --- a/src/aklog/aklog.c +++ b/src/aklog/aklog.c @@ -2126,8 +2126,11 @@ get_user_realm(krb5_context context, char **realm) *realm = NULL; - if (!_krb425_ccache) - krb5_cc_default(context, &_krb425_ccache); + if (!_krb425_ccache) { + r = krb5_cc_default(context, &_krb425_ccache); + if (r) + return r; + } if (!client_principal) { if (client) { r = krb5_parse_name(context, client, &client_principal);