r6618: only print the netlogon packets we receive if it is an unknown packet type
authorAndrew Tridgell <tridge@samba.org>
Thu, 5 May 2005 11:14:12 +0000 (11:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:31 +0000 (13:16 -0500)
source/nbt_server/dgram/netlogon.c

index e3f52928bf4d2cd021f398429292c0749e2e324c..eedb7405a5688481f26b5b601a83a1907fb26acc 100644 (file)
@@ -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;
        }