summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-04-14 05:55:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:33 -0500
commit8c4e06004cf5e95ea861440ef0ec0b4ddacf4c10 (patch)
tree98ff7490877ce7bff3d2508661285ac8133f78ea /source4
parenta451bc70e074f8f35f968b3ef1fc3daddb55590c (diff)
downloadsamba-8c4e06004cf5e95ea861440ef0ec0b4ddacf4c10.tar.gz
samba-8c4e06004cf5e95ea861440ef0ec0b4ddacf4c10.tar.bz2
samba-8c4e06004cf5e95ea861440ef0ec0b4ddacf4c10.zip
r6335: at debug level 10, save netlogon and ntlogon packets that fail to parse
(This used to be commit c29279355c679e821665d028f207ee9ed6f857ef)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/dgram/netlogon.c6
-rw-r--r--source4/libcli/dgram/ntlogon.c6
2 files changed, 6 insertions, 6 deletions
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;
}