summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2018-12-13 17:48:21 -0600
committerJon Loeliger <jdl@netgate.com>2018-12-13 17:48:21 -0600
commitcbee13a13a0ba57835badf9ed7a816313b82ae3e (patch)
tree8f662a0966d52610ffe2447c30b5c41027125358
parent400f6d8c1ba8b6a22fff434091cb1191f17889c7 (diff)
MAP: Fix inverted 'is_add'/'is_del' flag in map_pre_resolve() call.
Change-Id: I82e95358a4d710f1ddd4c8de584f03798e2b85f1 Signed-off-by: Jon Loeliger <jdl@netgate.com>
-rw-r--r--src/plugins/map/map_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/map/map_api.c b/src/plugins/map/map_api.c
index b32b7c28961..accf32857a6 100644
--- a/src/plugins/map/map_api.c
+++ b/src/plugins/map/map_api.c
@@ -337,7 +337,7 @@ static void
int rv = 0;
map_pre_resolve ((ip4_address_t *) & mp->ip4_nh_address,
- (ip6_address_t *) & mp->ip6_nh_address, mp->is_add);
+ (ip6_address_t *) & mp->ip6_nh_address, !mp->is_add);
REPLY_MACRO (VL_API_MAP_PARAM_ADD_DEL_PRE_RESOLVE_REPLY);
}