From 8c4e06004cf5e95ea861440ef0ec0b4ddacf4c10 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 14 Apr 2005 05:55:32 +0000 Subject: r6335: at debug level 10, save netlogon and ntlogon packets that fail to parse (This used to be commit c29279355c679e821665d028f207ee9ed6f857ef) --- source4/libcli/dgram/netlogon.c | 6 +++--- source4/libcli/dgram/ntlogon.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/libcli') diff --git a/source4/libcli/dgram/netlogon.c b/source4/libcli/dgram/netlogon.c index 208117845b..6e939725d0 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 1c1f138b1e..38651a4085 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; } -- cgit