summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2019-11-26 13:47:49 -0600
committerJon Loeliger <jdl@netgate.com>2019-11-26 13:47:49 -0600
commitacaa04a22dd8bade2eca944ddd8517961433a34f (patch)
treef3b0856f3121e80107e1304d7537529ef6de50b8
parentc298f3760228ad7846d40b6850a777ca5e5c5117 (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>
-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 7225fc62f81..54b3612e032 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"))