summaryrefslogtreecommitdiffstats
path: root/source/smbd/negprot.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/negprot.c')
-rw-r--r--source/smbd/negprot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/smbd/negprot.c b/source/smbd/negprot.c
index 5ff53f63007..447073acd84 100644
--- a/source/smbd/negprot.c
+++ b/source/smbd/negprot.c
@@ -249,6 +249,10 @@ static int reply_nt1(char *inbuf, char *outbuf)
(SVAL(inbuf, smb_flg2) & FLAGS2_EXTENDED_SECURITY)) {
negotiate_spnego = True;
capabilities |= CAP_EXTENDED_SECURITY;
+ add_to_common_flags2(FLAGS2_EXTENDED_SECURITY);
+ /* Ensure FLAGS2_EXTENDED_SECURITY gets set in this reply (already
+ partially constructed. */
+ SSVAL(outbuf,smb_flg2, SVAL(outbuf,smb_flg2) | FLAGS2_EXTENDED_SECURITY);
}
capabilities |= CAP_NT_SMBS|CAP_RPC_REMOTE_APIS|CAP_UNICODE;