[PATCH] smbd: Adjust debug level of "No protocol supported" message

Christof Schmitt cs at samba.org
Fri Sep 9 23:31:51 UTC 2016


From ac19a3cf46d0468f4cd931a655ce3ffa55ef491e Mon Sep 17 00:00:00 2001
From: Christof Schmitt <cs at samba.org>
Date: Thu, 8 Sep 2016 14:16:18 -0700
Subject: [PATCH] smbd: Adjust debug level of "No protocol supported" message

SMB clients only supporting SMB1 connecting to a Samba server that only
accepts SMB protocol versions 2 and 3 can spam the logs with the "No
protocol supported" message. This is useful information for debugging
failed connection attempts, but it should not be in the default log.
Adjust it to NOTICE/3.

Signed-off-by: Christof Schmitt <cs at samba.org>
---
 source3/smbd/negprot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index d2e5e2e..bd09b1d 100644
--- a/source3/smbd/negprot.c
+++ b/source3/smbd/negprot.c
@@ -710,7 +710,7 @@ void reply_negprot(struct smb_request *req)
 		supported_protocols[protocol].proto_reply_fn(req, choice);
 		DEBUG(3,("Selected protocol %s\n",supported_protocols[protocol].proto_name));
 	} else {
-		DEBUG(0,("No protocol supported !\n"));
+		DBG_NOTICE("No protocol supported !\n");
 		reply_outbuf(req, 1, 0);
 		SSVAL(req->outbuf, smb_vwv0, choice);
 	}
-- 
1.8.3.1



More information about the samba-technical mailing list