summaryrefslogtreecommitdiff
path: root/libpam/pam_handlers.c
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 /libpam/pam_handlers.c
parent24d983a9277c194dd4d8bf26f7f23daeceb50cb9 (diff)
Relevant BUGIDs: none
Purpose of commit: cleanup Commit summary: --------------- Remove duplicate check for NULL variable (Dmitry V. Levin)
Diffstat (limited to 'libpam/pam_handlers.c')
-rw-r--r--libpam/pam_handlers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpam/pam_handlers.c b/libpam/pam_handlers.c
index db69662c..76af72c4 100644
--- a/libpam/pam_handlers.c
+++ b/libpam/pam_handlers.c
@@ -1043,8 +1043,7 @@ void _pam_free_handlers_aux(struct handler **hp)
while (h) {
last = h;
_pam_drop(h->argv); /* This is all alocated in a single chunk */
- if (h->mod_name)
- _pam_drop(h->mod_name);
+ _pam_drop(h->mod_name);
h = h->next;
memset(last, 0, sizeof(*last));
free(last);