diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2013-09-13 15:20:01 +0200 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2013-09-13 15:20:01 +0200 |
commit | 45ec020678ffc82f6c2849935907e2d83710a1f2 (patch) | |
tree | fc57e86715ea37aa9075d46768968cf98d39394e /modules/pam_unix/support.c | |
parent | 7f9aa8388f19012b6b11b0077422ee0c7a8cb286 (diff) | |
download | pam-45ec020678ffc82f6c2849935907e2d83710a1f2.tar.gz pam-45ec020678ffc82f6c2849935907e2d83710a1f2.tar.bz2 pam-45ec020678ffc82f6c2849935907e2d83710a1f2.zip |
Write to *rounds only if non-NULL.
modules/pam_unix/support.c(_set_ctrl): Write to *rounds only if non-NULL.
Diffstat (limited to 'modules/pam_unix/support.c')
-rw-r--r-- | modules/pam_unix/support.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c index d8f4a6f7..9284dbaa 100644 --- a/modules/pam_unix/support.c +++ b/modules/pam_unix/support.c @@ -176,7 +176,7 @@ int _set_ctrl(pam_handle_t *pamh, int flags, int *remember, int *rounds, free (val); /* read number of rounds for crypt algo */ - if (on(UNIX_SHA256_PASS, ctrl) || on(UNIX_SHA512_PASS, ctrl)) { + if (rounds && (on(UNIX_SHA256_PASS, ctrl) || on(UNIX_SHA512_PASS, ctrl))) { val=search_key ("SHA_CRYPT_MAX_ROUNDS", LOGIN_DEFS); if (val) { |