fast-pattern: fix error check in keyword setup

Check the right variable. Coverity 1038096
pull/851/head
Victor Julien 13 years ago
parent 3fa958b9a7
commit aa8918abd1

@ -341,7 +341,7 @@ static int DetectFastPatternSetup(DetectEngineCtx *de_ctx, Signature *s, char *a
goto error; goto error;
} }
int length = atoi(arg_substr); int length = atoi(arg_substr);
if (offset > 65535) { if (length > 65535) {
SCLogError(SC_ERR_INVALID_SIGNATURE, "Fast pattern length exceeds " SCLogError(SC_ERR_INVALID_SIGNATURE, "Fast pattern length exceeds "
"limit"); "limit");
goto error; goto error;

Loading…
Cancel
Save