summaryrefslogtreecommitdiff
path: root/source4/smb_server/negprot.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server/negprot.c')
-rw-r--r--source4/smb_server/negprot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/smb_server/negprot.c b/source4/smb_server/negprot.c
index e7fdc303a2..25ab1ab4a9 100644
--- a/source4/smb_server/negprot.c
+++ b/source4/smb_server/negprot.c
@@ -455,6 +455,7 @@ void reply_negprot(struct smbsrv_request *req)
if (req->smb_conn->negotiate.done_negprot) {
smbsrv_terminate_connection(req->smb_conn, "multiple negprot's are not permitted");
+ return;
}
req->smb_conn->negotiate.done_negprot = True;