diff options
author | Tomas Mraz <tm@t8m.info> | 2005-04-19 07:37:50 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2005-04-19 07:37:50 +0000 |
commit | 5fd4e6dd66443119070b41c226809d263a6d0d23 (patch) | |
tree | 0e790f908bf83d695ecf684f214743bcdd720dff /modules/pam_stress | |
parent | 9c459446c2424d46622e95e4d54280fee0ef9607 (diff) | |
download | pam-5fd4e6dd66443119070b41c226809d263a6d0d23.tar.gz pam-5fd4e6dd66443119070b41c226809d263a6d0d23.tar.bz2 pam-5fd4e6dd66443119070b41c226809d263a6d0d23.zip |
Relevant BUGIDs:
Purpose of commit: bugfix
Commit summary:
---------------
Various cleanups and minor bugfixes by Steve Grubb.
Diffstat (limited to 'modules/pam_stress')
-rw-r--r-- | modules/pam_stress/pam_stress.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/pam_stress/pam_stress.c b/modules/pam_stress/pam_stress.c index d45ad300..205c432d 100644 --- a/modules/pam_stress/pam_stress.c +++ b/modules/pam_stress/pam_stress.c @@ -197,9 +197,11 @@ static int stress_get_password(pam_handle_t *pamh, int flags pass = resp[0].resp; /* remember this! */ resp[0].resp = NULL; - } else if (ctrl & PAM_ST_DEBUG) { - _pam_log(LOG_DEBUG,"pam_sm_authenticate: no error reported"); - _pam_log(LOG_DEBUG,"getting password, but NULL returned!?"); + } else { + if (ctrl & PAM_ST_DEBUG) { + _pam_log(LOG_DEBUG,"pam_sm_authenticate: no error reported"); + _pam_log(LOG_DEBUG,"getting password, but NULL returned!?"); + } return PAM_CONV_ERR; } if (resp) |