s3: Fix bug 8238 -- KB2536276 prevents access to shares
authorVolker Lendecke <vl@samba.org>
Thu, 16 Jun 2011 20:20:49 +0000 (22:20 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Aug 2011 19:09:16 +0000 (21:09 +0200)
Without this we were not sending the workgroup name in the negprot reply if
plain text passwords are used.
(cherry picked from commit d42bf679b0807ebc47f43c62d4b883e0b5096abb)

source3/smbd/negprot.c

index 81d29d90f97f5a106770dec0b84cd752845beccb..51ad80d648582f626f18f5e863d1809d0c85365a 100644 (file)
@@ -382,6 +382,7 @@ static void reply_nt1(struct smb_request *req, uint16 choice)
                        reply_nterror(req, NT_STATUS_NO_MEMORY);
                        return;
                }
+               p += ret;
                DEBUG(3,("not using SPNEGO\n"));
        } else {
                DATA_BLOB spnego_blob = negprot_spnego();