smb: use default stream-depth 0 by default

As broken by commit e5c948df87

Ticket: #5390
pull/7531/head
Philippe Antoine 3 years ago committed by Victor Julien
parent 2ba9da4815
commit eb1c2a6083

@ -2449,8 +2449,8 @@ pub unsafe extern "C" fn rs_smb_register_parser() {
Ok(retval) => { stream_depth = retval as u32; }
Err(_) => { SCLogError!("Invalid depth value"); }
}
AppLayerParserSetStreamDepth(IPPROTO_TCP as u8, ALPROTO_SMB, stream_depth);
}
AppLayerParserSetStreamDepth(IPPROTO_TCP as u8, ALPROTO_SMB, stream_depth);
let retval = conf_get("app-layer.protocols.smb.max-read-size");
if let Some(val) = retval {
match get_memval(val) {

@ -32,8 +32,6 @@
static StreamingBufferConfig sbcfg = STREAMING_BUFFER_CONFIG_INITIALIZER;
static SuricataFileContext sfc = { &sbcfg };
#define SMB_CONFIG_DEFAULT_STREAM_DEPTH 0
#ifdef UNITTESTS
static void SMBParserRegisterTests(void);
#endif

Loading…
Cancel
Save