summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2019-11-26 13:47:49 -0600
committerDave Wallace <dwallacelf@gmail.com>2020-08-12 01:23:50 +0000
commitcd3a7c96464aca67ab45117db740d56b091666ff (patch)
tree380846bbd1dac8858906ca9aab3de9b3f66c4073 /src/plugins
parent8658b077aee8812e7f9be4fbfc990978f5197eef (diff)
map: Fix inverted 'map security check enable' CLI flag.
Type: fix Fixes: 5a2e278a09726be627b8310e03f0522d60aafedf Change-Id: Ibdc2f0be44e382bfa4a8f3e16be8d6239d7a0ec1 Signed-off-by: Jon Loeliger <jdl@netgate.com> (cherry picked from commit acaa04a22dd8bade2eca944ddd8517961433a34f)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/map/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/map/map.c b/src/plugins/map/map.c
index 6ec9e72b413..36f7b9bf68a 100644
--- a/src/plugins/map/map.c
+++ b/src/plugins/map/map.c
@@ -456,12 +456,12 @@ map_security_check_command_fn (vlib_main_t * vm,
{
if (unformat (line_input, "enable"))
{
- enable = false;
+ enable = true;
saw_enable = true;
}
else if (unformat (line_input, "disable"))
{
- enable = true;
+ enable = false;
saw_enable = true;
}
else if (unformat (line_input, "fragments on"))