From: Victor Julien Date: Tue, 13 Jun 2023 07:51:48 +0000 (+0200) Subject: exception/policy: minor code cleanup X-Git-Tag: suricata-7.0.0-rc2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=479fa609fa03719936d147342551d97797c92623;p=thirdparty%2Fsuricata.git exception/policy: minor code cleanup --- diff --git a/src/util-exception-policy.c b/src/util-exception-policy.c index a1fc9d41bf..1081144341 100644 --- a/src/util-exception-policy.c +++ b/src/util-exception-policy.c @@ -199,11 +199,9 @@ static enum ExceptionPolicy ExceptionPolicyPickAuto(bool midstream_enabled, bool static enum ExceptionPolicy ExceptionPolicyMasterParse(const char *value) { - enum ExceptionPolicy policy = EXCEPTION_POLICY_NOT_SET; - - policy = ExceptionPolicyConfigValueParse("exception-policy", value); - g_eps_have_exception_policy = true; + enum ExceptionPolicy policy = ExceptionPolicyConfigValueParse("exception-policy", value); policy = SetIPSOption("exception-policy", value, policy); + g_eps_have_exception_policy = true; SCLogInfo("exception-policy set to: %s", ExceptionPolicyEnumToString(policy));