summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-03 09:57:53 +0200
committerKarolin Seeger <kseeger@samba.org>2009-04-15 09:07:57 +0200
commitb23fed81075cbe586771ae31300c3045749a6533 (patch)
tree5e94e40495c77325d919469976450e6c2056e7d3 /nsswitch
parent5451235d4c1d776d4cd70f0e86873b06d4c1723f (diff)
downloadsamba-b23fed81075cbe586771ae31300c3045749a6533.tar.gz
s3-nsswitch: Fix Bug #6238. Make sure wbcLogoffUserParams are properly
initialized before freed. Fix inspired by patch from Rashid N. Achilov <citycat4@ngs.ru>. Guenther (cherry picked from commit 09265bcff5a2fac42f5abf34b8b439aa0a6998a1) (cherry picked from commit 24ff9b8dba8e4e0918b0aabf5cb8bacecfbc39d7)
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 62d72c291b2..5feccb67238 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -2318,6 +2318,8 @@ static int _pam_delete_cred(pam_handle_t *pamh, int flags,
const char *user;
wbcErr wbc_status = WBC_ERR_SUCCESS;
+ ZERO_STRUCT(logoff);
+
retval = _pam_winbind_init_context(pamh, flags, argc, argv, &ctx);
if (retval) {
goto out;
@@ -2365,8 +2367,6 @@ static int _pam_delete_cred(pam_handle_t *pamh, int flags,
wbc_flags = WBFLAG_PAM_KRB5 |
WBFLAG_PAM_CONTACT_TRUSTDOM;
- ZERO_STRUCT(logoff);
-
logoff.username = user;
if (ccname) {