summaryrefslogtreecommitdiff
path: root/libpam/pam_end.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpam/pam_end.c')
-rw-r--r--libpam/pam_end.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpam/pam_end.c b/libpam/pam_end.c
index c96dc384..942253d8 100644
--- a/libpam/pam_end.c
+++ b/libpam/pam_end.c
@@ -82,6 +82,9 @@ int pam_end(pam_handle_t *pamh, int pam_status)
_pam_drop(pamh->xauth.data);
_pam_overwrite_n((char *)&pamh->xauth, sizeof(pamh->xauth));
+ _pam_overwrite(pamh->authtok_type);
+ _pam_drop(pamh->authtok_type);
+
/* and finally liberate the memory for the pam_handle structure */
_pam_drop(pamh);