s3-nsswitch: Fix Bug #6238 2nd part. zero blob pointer in wbcLogoffUserParams.
authorGünther Deschner <gd@samba.org>
Fri, 3 Apr 2009 10:50:50 +0000 (12:50 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 3 Apr 2009 10:53:35 +0000 (12:53 +0200)
Patch from Rashid N. Achilov <citycat4@ngs.ru>.

Guenther

nsswitch/pam_winbind.c

index 5feccb672384c76267b805660164304b8268d979..0d33f59a23c62b50e53b3bdddd5d29e4fe8f4aa1 100644 (file)
@@ -2406,6 +2406,7 @@ static int _pam_delete_cred(pam_handle_t *pamh, int flags,
                                                     user, "wbcLogoffUser");
                wbcFreeMemory(error);
                wbcFreeMemory(logoff.blobs);
                                                     user, "wbcLogoffUser");
                wbcFreeMemory(error);
                wbcFreeMemory(logoff.blobs);
+               logoff.blobs = NULL;
 
                if (!WBC_ERROR_IS_OK(wbc_status)) {
                        _pam_log(ctx, LOG_INFO,
 
                if (!WBC_ERROR_IS_OK(wbc_status)) {
                        _pam_log(ctx, LOG_INFO,