r6335: at debug level 10, save netlogon and ntlogon packets that fail to parse
authorAndrew Tridgell <tridge@samba.org>
Thu, 14 Apr 2005 05:55:32 +0000 (05:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:33 +0000 (13:11 -0500)
(This used to be commit c29279355c679e821665d028f207ee9ed6f857ef)

source4/libcli/dgram/netlogon.c
source4/libcli/dgram/ntlogon.c

index 208117845bd00391db4b73ae69fe2b2e1a0b1b00..6e939725d0aff855f59550a496ddae3bc731a566 100644 (file)
@@ -109,9 +109,9 @@ NTSTATUS dgram_mailslot_netlogon_parse(struct dgram_mailslot_handler *dgmslot,
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0,("Failed to parse netlogon packet of length %d\n", 
                         data.length));
-#if 0
-               file_save("netlogon.dat", data.data, data.length);
-#endif
+               if (DEBUGLVL(10)) {
+                       file_save("netlogon.dat", data.data, data.length);
+               }
        }
        return status;
 }
index 1c1f138b1e2b3beb567a0097417e09b444e638df..38651a4085a27b9faf838d0f018612f398a9563c 100644 (file)
@@ -109,9 +109,9 @@ NTSTATUS dgram_mailslot_ntlogon_parse(struct dgram_mailslot_handler *dgmslot,
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0,("Failed to parse ntlogon packet of length %d\n", 
                         data.length));
-#if 0
-               file_save("ntlogon.dat", data.data, data.length);
-#endif
+               if (DEBUGLVL(10)) {
+                       file_save("ntlogon.dat", data.data, data.length);
+               }
        }
        return status;
 }