krb5: default to client realm in _krb5_get_krbtgt
If _krb5_get_krbtgt() is called with a NULL realm, use the realm of the ccache client
This commit is contained in:
@@ -306,6 +306,9 @@ _krb5_get_krbtgt(krb5_context context,
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (realm == NULL)
|
||||||
|
realm = tmp_cred.client->realm;
|
||||||
|
|
||||||
ret = krb5_make_principal(context,
|
ret = krb5_make_principal(context,
|
||||||
&tmp_cred.server,
|
&tmp_cred.server,
|
||||||
realm,
|
realm,
|
||||||
|
Reference in New Issue
Block a user