(krb5_get_init_creds_password): `in_tkt_service' can be NULL

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8140 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-04-08 21:15:45 +00:00
parent 490e231a1f
commit 5d80214b41

View File

@@ -442,7 +442,8 @@ krb5_get_init_creds_password(krb5_context context,
case KRB5KDC_ERR_KEY_EXPIRED :
/* try to avoid recursion */
if (strcmp (in_tkt_service, "kadmin/changepw") == 0)
if (in_tkt_service != NULL
&& strcmp (in_tkt_service, "kadmin/changepw") == 0)
goto out;
ret = change_password (context,