summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-01-15 10:47:51 +0100
committerJeremy Allison <jra@samba.org>2018-01-15 22:17:08 +0100
commit6aa0cc2570f9c86e76086bebf16234988107384e (patch)
treef63577d4d05bc0efc4eea764165c0d8396c42924 /source3/rpc_server
parent05ebafd91ee2dd511372ce63d656e9fc6735ee28 (diff)
downloadsamba-6aa0cc2570f9c86e76086bebf16234988107384e.tar.gz
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 <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_pipe.c5
1 files changed, 4 insertions, 1 deletions
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 : "<null>");
+ TALLOC_FREE(iface);
return false;
}