From 839b97899858d182c9499a027ac27f5c852bb5d5 Mon Sep 17 00:00:00 2001 From: Kirby Kuehl Date: Sat, 6 Feb 2010 10:44:18 -0600 Subject: [PATCH 2/2] reset smb bytesprocessed when complete --- src/app-layer-smb.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/app-layer-smb.c b/src/app-layer-smb.c index 95c1c87..f0bbaad 100644 --- a/src/app-layer-smb.c +++ b/src/app-layer-smb.c @@ -1031,8 +1031,12 @@ static int SMBParse(Flow *f, void *smb_state, AppLayerParserState *pstate, input_len = 0; } } + } while (sstate->andx.andxcommand != SMB_NO_SECONDARY_ANDX_COMMAND && input_len); + if (sstate->bytesprocessed == sstate->nbss.length + NBSS_HDR_LEN) { + sstate->bytesprocessed = 0; + } break; default: break; -- 1.6.6