summaryrefslogtreecommitdiff
path: root/modules/pam_ftp
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2005-09-05 19:45:37 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2005-09-05 19:45:37 +0000
commit6225f763fc27b7b0a888309f415b219366ee096a (patch)
tree6140526fdcf31d85c3b9ec3bab089861065cfa1f /modules/pam_ftp
parent24d983a9277c194dd4d8bf26f7f23daeceb50cb9 (diff)
Relevant BUGIDs: none
Purpose of commit: cleanup Commit summary: --------------- Remove duplicate check for NULL variable (Dmitry V. Levin)
Diffstat (limited to 'modules/pam_ftp')
-rw-r--r--modules/pam_ftp/pam_ftp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/pam_ftp/pam_ftp.c b/modules/pam_ftp/pam_ftp.c
index 552858ba..49f59bc8 100644
--- a/modules/pam_ftp/pam_ftp.c
+++ b/modules/pam_ftp/pam_ftp.c
@@ -174,8 +174,7 @@ pam_sm_authenticate (pam_handle_t *pamh, int flags UNUSED,
GUEST_LOGIN_PROMPT);
if (retval != PAM_SUCCESS) {
- if (resp != NULL)
- _pam_drop (resp);
+ _pam_drop (resp);
return ((retval == PAM_CONV_AGAIN)
? PAM_INCOMPLETE:PAM_AUTHINFO_UNAVAIL);
}
@@ -211,9 +210,8 @@ pam_sm_authenticate (pam_handle_t *pamh, int flags UNUSED,
retval = PAM_AUTH_ERR;
}
- if (resp) { /* clean up */
- _pam_drop(resp);
- }
+ /* clean up */
+ _pam_drop(resp);
/* success or failure */