VPP-1032: fix coverity warning in bier
Change-Id: I0f8d2d9be78d4d936ed61538aee1b7207871347b
Signed-off-by: Dave Barach <dave@barachs.net>
diff --git a/src/vnet/bier/bier_api.c b/src/vnet/bier/bier_api.c
index 002ea0b..7d541c4 100644
--- a/src/vnet/bier/bier_api.c
+++ b/src/vnet/bier/bier_api.c
@@ -236,11 +236,11 @@
if (mp->br_is_add)
{
- bier_table_route_add(&bti, ntohs(mp->br_bp), brpaths);
+ bier_table_route_add(&bti, bp, brpaths);
}
else
{
- bier_table_route_remove(&bti, ntohs(mp->br_bp), brpaths);
+ bier_table_route_remove(&bti, bp, brpaths);
}
done: