diff options
Diffstat (limited to 'Linux-PAM/libpamc/test/modules/pam_secret.c')
-rw-r--r-- | Linux-PAM/libpamc/test/modules/pam_secret.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Linux-PAM/libpamc/test/modules/pam_secret.c b/Linux-PAM/libpamc/test/modules/pam_secret.c index 557f5959..95f26014 100644 --- a/Linux-PAM/libpamc/test/modules/pam_secret.c +++ b/Linux-PAM/libpamc/test/modules/pam_secret.c @@ -1,5 +1,5 @@ /* - * $Id: pam_secret.c,v 1.1.1.1 2001/04/29 04:17:14 hartmans Exp $ + * $Id: pam_secret.c,v 1.3 2004/09/14 14:22:39 kukuk Exp $ * * Copyright (c) 1999 Andrew G. Morgan <morgan@linux.kernel.org> */ @@ -206,6 +206,7 @@ char *identify_secret(char *identity, const char *user) pwd = getpwnam(user); if ((pwd == NULL) || (pwd->pw_dir == NULL)) { D(("user [%s] is not known", user)); + return NULL; } length_id = strlen(pwd->pw_dir) + sizeof(SECRET_FILE_FORMAT); |