diff options
author | Volker Lendecke <vl@samba.org> | 2018-01-15 10:47:51 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-01-15 22:17:08 +0100 |
commit | 6aa0cc2570f9c86e76086bebf16234988107384e (patch) | |
tree | f63577d4d05bc0efc4eea764165c0d8396c42924 /source3 | |
parent | 05ebafd91ee2dd511372ce63d656e9fc6735ee28 (diff) | |
download | samba-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')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 5 |
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; } |