From 5fd4e6dd66443119070b41c226809d263a6d0d23 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Tue, 19 Apr 2005 07:37:50 +0000 Subject: Relevant BUGIDs: Purpose of commit: bugfix Commit summary: --------------- Various cleanups and minor bugfixes by Steve Grubb. --- modules/pam_stress/pam_stress.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/pam_stress/pam_stress.c') 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) -- cgit v1.2.3