(gss_userok): handle getpwnam failing

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9316 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-12-08 05:09:46 +00:00
parent 85b4d8f0a8
commit f7d58f9e79

View File

@@ -82,6 +82,11 @@ gss_userok(void *app_data, char *username)
pw = getpwnam(username);
if (pw == NULL) {
ret = 1;
goto fail;
}
asprintf (&ticketfile, "%s%u", KRB5_DEFAULT_CCROOT, pw->pw_uid);
ret = krb5_cc_resolve(gssapi_krb5_context, ticketfile, &ccache);