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:
Luke Howard
2021-08-09 14:45:12 +10:00
parent 8a4ce9950f
commit 57a1a66348

View File

@@ -306,6 +306,9 @@ _krb5_get_krbtgt(krb5_context context,
if (ret)
return ret;
if (realm == NULL)
realm = tmp_cred.client->realm;
ret = krb5_make_principal(context,
&tmp_cred.server,
realm,