Skip to content

Commit

Permalink
exception/policy: minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Jun 13, 2023
1 parent 106b885 commit 479fa60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/util-exception-policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 479fa60

Please sign in to comment.