detect-engine: remove redundant configuration check

pull/13383/head
Lukas Sismis 1 year ago committed by Victor Julien
parent 0ef3bff495
commit 21366c5353

@ -2440,12 +2440,10 @@ retry:
bool DetectEngineMpmCachingEnabled(void)
{
const char *strval = NULL;
if (SCConfGet("detect.sgh-mpm-caching", &strval) != 1)
return false;
int sgh_mpm_caching = 0;
(void)SCConfGetBool("detect.sgh-mpm-caching", &sgh_mpm_caching);
if (SCConfGetBool("detect.sgh-mpm-caching", &sgh_mpm_caching) != 1) {
return false;
}
return (bool)sgh_mpm_caching;
}

Loading…
Cancel
Save