From: Andrew Tridgell Date: Thu, 5 May 2005 11:14:12 +0000 (+0000) Subject: r6618: only print the netlogon packets we receive if it is an unknown packet type X-Git-Tag: samba-misc-tags/initial-v4-0-unstable~9362 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=8229fe4dd5f4eb89eb19fa02eedc7f00a31b204e;ds=sidebyside r6618: only print the netlogon packets we receive if it is an unknown packet type --- diff --git a/source/nbt_server/dgram/netlogon.c b/source/nbt_server/dgram/netlogon.c index e3f52928bf4..eedb7405a56 100644 --- a/source/nbt_server/dgram/netlogon.c +++ b/source/nbt_server/dgram/netlogon.c @@ -185,8 +185,6 @@ void nbtd_mailslot_netlogon_handler(struct dgram_mailslot_handler *dgmslot, status = dgram_mailslot_netlogon_parse(dgmslot, netlogon, packet, netlogon); if (!NT_STATUS_IS_OK(status)) goto failed; - NDR_PRINT_DEBUG(nbt_netlogon_packet, netlogon); - switch (netlogon->command) { case NETLOGON_QUERY_FOR_PDC: nbtd_netlogon_getdc(dgmslot, packet, src_address, src_port, netlogon); @@ -197,6 +195,7 @@ void nbtd_mailslot_netlogon_handler(struct dgram_mailslot_handler *dgmslot, default: DEBUG(2,("unknown netlogon op %d from %s:%d\n", netlogon->command, src_address, src_port)); + NDR_PRINT_DEBUG(nbt_netlogon_packet, netlogon); break; }