aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/correct_password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/correct_password.c b/libbb/correct_password.c
index f0b9384ea..f47642fd5 100644
--- a/libbb/correct_password.c
+++ b/libbb/correct_password.c
@@ -59,7 +59,7 @@ int correct_password(const struct passwd *pw)
59 /* getspnam_r may return 0 yet set result to NULL. 59 /* getspnam_r may return 0 yet set result to NULL.
60 * At least glibc 2.4 does this. Be extra paranoid here. */ 60 * At least glibc 2.4 does this. Be extra paranoid here. */
61 struct spwd *result = NULL; 61 struct spwd *result = NULL;
62 int r = getspnam_r(pw->pw_name, &spw, buffer, sizeof(buffer), &result); 62 r = getspnam_r(pw->pw_name, &spw, buffer, sizeof(buffer), &result);
63 correct = (r || !result) ? "aa" : result->sp_pwdp; 63 correct = (r || !result) ? "aa" : result->sp_pwdp;
64 } 64 }
65#endif 65#endif