diff options
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/auth-pam.c b/auth-pam.c index 7d8b2926b..bc8e5e02d 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -830,6 +830,8 @@ fake_password(const char *wire_password) | |||
830 | fatal("%s: password length too long: %zu", __func__, l); | 830 | fatal("%s: password length too long: %zu", __func__, l); |
831 | 831 | ||
832 | ret = malloc(l + 1); | 832 | ret = malloc(l + 1); |
833 | if (ret == NULL) | ||
834 | return NULL; | ||
833 | for (i = 0; i < l; i++) | 835 | for (i = 0; i < l; i++) |
834 | ret[i] = junk[i % (sizeof(junk) - 1)]; | 836 | ret[i] = junk[i % (sizeof(junk) - 1)]; |
835 | ret[i] = '\0'; | 837 | ret[i] = '\0'; |