From 1387847f007ee52d1e3220de76f377c64e77fedc Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Sun, 27 Mar 2016 12:29:01 +0200 Subject: [PATCH] Refactored the SMB decoder Added dependencies for "dump_smb.h" --- source_code/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source_code/main.c b/source_code/main.c index 646b3d3..d7e50ce 100644 --- a/source_code/main.c +++ b/source_code/main.c @@ -37,6 +37,7 @@ /****************************************************************************/ #include "smb_abstraction.h" +#include "dump_smb.h" /****************************************************************************/ @@ -800,8 +801,12 @@ _start(VOID) SETDEBUGLEVEL(0); /* Enable SMB packet decoding, but only if not started from Workbench. */ - if(args.DumpSMB && WBStartup == NULL) - control_smb_dump(TRUE); + #if defined(DUMP_SMB) + { + if(args.DumpSMB && WBStartup == NULL) + control_smb_dump(TRUE); + } + #endif /* DUMP_SMB */ D(("%s (%s)",VERS,DATE));