From 09265bcff5a2fac42f5abf34b8b439aa0a6998a1 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 3 Apr 2009 09:57:53 +0200 Subject: s3-nsswitch: Fix Bug #6238. Make sure logoff is bla bla. Fix inspired by patch from Rashid N. Achilov . Guenther --- nsswitch/pam_winbind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nsswitch/pam_winbind.c') diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index 62d72c291b..5feccb6723 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) { -- cgit