Skip to content

Commit

Permalink
fast-pattern: fix tls_sni
Browse files Browse the repository at this point in the history
Use all 32 arguments in call to SigMatchGetLastSMFromLists

Was preventing fast_pattern from being applied to tls_sni:
https://redmine.openinfosecfoundation.org/issues/1941
  • Loading branch information
jasonish authored and victorjulien committed Nov 1, 2016
1 parent 3973dd5 commit d35613f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detect-fast-pattern.c
Expand Up @@ -217,7 +217,7 @@ static int DetectFastPatternSetup(DetectEngineCtx *de_ctx, Signature *s, char *a
return -1;
}

SigMatch *pm = SigMatchGetLastSMFromLists(s, 28,
SigMatch *pm = SigMatchGetLastSMFromLists(s, 32,
DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_PMATCH],
DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_UMATCH],
DETECT_CONTENT, s->sm_lists_tail[DETECT_SM_LIST_HCBDMATCH],
Expand Down

0 comments on commit d35613f

Please sign in to comment.