(krb5_to4): always return a value

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9345 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-12-11 00:23:31 +00:00
parent 4564cb0161
commit f628d2de7d

View File

@@ -176,7 +176,7 @@ krb5_verify(struct passwd *pwd, const char *password)
} }
#ifdef KRB4 #ifdef KRB4
static void static krb5_error_code
krb5_to4 (krb5_ccache id) krb5_to4 (krb5_ccache id)
{ {
if (krb5_config_get_bool(context, NULL, if (krb5_config_get_bool(context, NULL,
@@ -191,7 +191,7 @@ krb5_to4 (krb5_ccache id)
ret = krb5_cc_get_principal (context, id, &princ); ret = krb5_cc_get_principal (context, id, &princ);
if (ret) if (ret)
return; return ret;
ret = krb5_make_principal(context, &mcred.server, ret = krb5_make_principal(context, &mcred.server,
princ->realm, princ->realm,
@@ -216,6 +216,7 @@ krb5_to4 (krb5_ccache id)
} }
krb5_free_principal(context, mcred.server); krb5_free_principal(context, mcred.server);
} }
return 0;
} }
#endif /* KRB4 */ #endif /* KRB4 */