rpc_server: Improve a debug message
authorVolker Lendecke <vl@samba.org>
Mon, 15 Jan 2018 09:47:51 +0000 (10:47 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 15 Jan 2018 21:17:08 +0000 (22:17 +0100)
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>
source3/rpc_server/srv_pipe.c

index 4534200f75cd5f161882b5e61ce0711ddcb2f8a1..7a1c61594678e9814bd9bfe9d1e292a893ba6bc7 100644 (file)
@@ -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;
        }