summaryrefslogtreecommitdiff
path: root/libpamc/test/modules
diff options
context:
space:
mode:
Diffstat (limited to 'libpamc/test/modules')
-rw-r--r--libpamc/test/modules/pam_secret.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpamc/test/modules/pam_secret.c b/libpamc/test/modules/pam_secret.c
index 7efa8c23..830f1a78 100644
--- a/libpamc/test/modules/pam_secret.c
+++ b/libpamc/test/modules/pam_secret.c
@@ -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);