reject rules with an invalid ttl range

remotes/origin/master
Eileen Donlon 14 years ago committed by Victor Julien
parent 4157d9408d
commit f2e85ab9ee

@ -219,8 +219,11 @@ DetectTtlData *DetectTtlParse (char *ttlstr) {
ttld->ttl1 = (uint8_t) atoi(arg1);
ttld->ttl2 = (uint8_t) atoi(arg3);
SCLogDebug("ttl is %"PRIu8" and %"PRIu8"",ttld->ttl1, ttld->ttl2);
SCLogDebug("ttl is %"PRIu8" to %"PRIu8"",ttld->ttl1, ttld->ttl2);
if (ttld->ttl1 >= ttld->ttl2) {
SCLogError(SC_ERR_INVALID_SIGNATURE, "Invalid ttl range. ");
goto error;
}
break;
default:
ttld->mode = DETECT_TTL_EQ;

Loading…
Cancel
Save