diff options
Diffstat (limited to 'modules/pam_unix')
-rw-r--r-- | modules/pam_unix/support.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c index 61915e57..6b8b8020 100644 --- a/modules/pam_unix/support.c +++ b/modules/pam_unix/support.c @@ -15,6 +15,7 @@ #include <shadow.h> #include <limits.h> #include <utmp.h> +#include <errno.h> #include <security/_pam_macros.h> #include <security/pam_modules.h> @@ -346,7 +347,7 @@ int _unix_blankpasswd(unsigned int ctrl, const char *name) while (retval == ERANGE) { bufsize += 1024; buf = realloc(buf, bufsize); - if ((retval getpwnam_r(name, pwd, buf, bufsize, &pwd))) { + if ((retval = getpwnam_r(name, pwd, buf, bufsize, &pwd))) { pwd = NULL; } } |