diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-04-14 05:55:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:33 -0500 |
commit | 8c4e06004cf5e95ea861440ef0ec0b4ddacf4c10 (patch) | |
tree | 98ff7490877ce7bff3d2508661285ac8133f78ea | |
parent | a451bc70e074f8f35f968b3ef1fc3daddb55590c (diff) | |
download | samba-8c4e06004cf5e95ea861440ef0ec0b4ddacf4c10.tar.gz samba-8c4e06004cf5e95ea861440ef0ec0b4ddacf4c10.tar.xz samba-8c4e06004cf5e95ea861440ef0ec0b4ddacf4c10.zip |
r6335: at debug level 10, save netlogon and ntlogon packets that fail to parse
(This used to be commit c29279355c679e821665d028f207ee9ed6f857ef)
-rw-r--r-- | source4/libcli/dgram/netlogon.c | 6 | ||||
-rw-r--r-- | source4/libcli/dgram/ntlogon.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source4/libcli/dgram/netlogon.c b/source4/libcli/dgram/netlogon.c index 208117845bd..6e939725d0a 100644 --- a/source4/libcli/dgram/netlogon.c +++ b/source4/libcli/dgram/netlogon.c @@ -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; } diff --git a/source4/libcli/dgram/ntlogon.c b/source4/libcli/dgram/ntlogon.c index 1c1f138b1e2..38651a4085a 100644 --- a/source4/libcli/dgram/ntlogon.c +++ b/source4/libcli/dgram/ntlogon.c @@ -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; } |