Skip to content

Commit

Permalink
smbd: Adjust debug level of "No protocol supported" message
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Volker Lendecke <[email protected]>
  • Loading branch information
chs authored and vlendec committed Sep 10, 2016
1 parent 8dc6fbb commit ced3bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source3/smbd/negprot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ced3bcf

Please sign in to comment.