From: Volker Lendecke Date: Mon, 15 Jan 2018 09:47:51 +0000 (+0100) Subject: rpc_server: Improve a debug message X-Git-Tag: tevent-0.9.36~314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6aa0cc2570f9c86e76086bebf16234988107384e;p=thirdparty%2Fsamba.git rpc_server: Improve a debug message A client sending us a bind with an unknown interface should not spam syslog by default. Also, show what interface the client tried to connect to. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 4534200f75c..7a1c6159467 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -738,7 +738,10 @@ static bool api_pipe_bind_req(struct pipes_struct *p, table = ndr_table_by_uuid(&id.uuid); if (table == NULL) { - DEBUG(0,("unknown interface\n")); + char *iface = ndr_syntax_id_to_string(talloc_tos(), &id); + DBG_NOTICE("unknown interface %s\n", + iface ? iface : ""); + TALLOC_FREE(iface); return false; }