(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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user