summaryrefslogtreecommitdiff
path: root/modules/pam_stress
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2005-04-19 07:37:50 +0000
committerTomas Mraz <tm@t8m.info>2005-04-19 07:37:50 +0000
commit5fd4e6dd66443119070b41c226809d263a6d0d23 (patch)
tree0e790f908bf83d695ecf684f214743bcdd720dff /modules/pam_stress
parent9c459446c2424d46622e95e4d54280fee0ef9607 (diff)
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.c8
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)