MAP: Fix inverted 'is_add'/'is_del' flag in map_pre_resolve() call. 72/16472/1
authorJon Loeliger <jdl@netgate.com>
Thu, 13 Dec 2018 23:48:21 +0000 (17:48 -0600)
committerJon Loeliger <jdl@netgate.com>
Thu, 13 Dec 2018 23:48:21 +0000 (17:48 -0600)
Change-Id: I82e95358a4d710f1ddd4c8de584f03798e2b85f1
Signed-off-by: Jon Loeliger <jdl@netgate.com>
src/plugins/map/map_api.c

index b32b7c2..accf328 100644 (file)
@@ -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);
 }