From 03439e183686567f632fa9c085691c4bb8d3e365 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 26 Nov 2001 00:43:37 +0000 Subject: fixed spnego, non-kerberos negprot (This used to be commit 2e916222a915c27f919a9841bde5ba0967af2190) --- source3/smbd/negprot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index 8a01a59bf2..a2666ae24e 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -271,6 +271,8 @@ static int reply_nt1(char *inbuf, char *outbuf) } SSVALS(outbuf,smb_vwv16+1,8); p += 8; + p += srvstr_push(outbuf, p, global_myworkgroup, -1, + STR_UNICODE|STR_TERMINATE|STR_NOALIGN); DEBUG(3,("not using SPNEGO\n")); } else { int len = negprot_spnego(p); @@ -279,8 +281,6 @@ static int reply_nt1(char *inbuf, char *outbuf) p += len; DEBUG(3,("using SPNEGO\n")); } - p += srvstr_push(outbuf, p, global_myworkgroup, -1, - STR_UNICODE|STR_TERMINATE|STR_NOALIGN); SSVAL(outbuf,smb_vwv17, p - q); /* length of challenge+domain strings */ set_message_end(outbuf, p); -- cgit