summaryrefslogtreecommitdiffstats
path: root/zebra/zapi_msg.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2020-09-15 19:42:49 +0200
committerStephen Worley <sworley@cumulusnetworks.com>2020-09-28 18:41:00 +0200
commitaaa42e056fe2e52c74c8e9241948cc76b61e2ee2 (patch)
tree11c1033219b8c4c1ef8629f19d8f721bad96dd9b /zebra/zapi_msg.c
parentsharp: add check for num_nh > multipath (diff)
downloadfrr-aaa42e056fe2e52c74c8e9241948cc76b61e2ee2.tar.xz
frr-aaa42e056fe2e52c74c8e9241948cc76b61e2ee2.zip
zebra: add type to nhg_prot_del API for sanity check
Add type to the nhg_proto_del API params for sanity checking that the types of the route sent by the proto matches the type found with the ID. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zapi_msg.c')
-rw-r--r--zebra/zapi_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c
index 6a897166c..7ed3a41ae 100644
--- a/zebra/zapi_msg.c
+++ b/zebra/zapi_msg.c
@@ -1746,7 +1746,7 @@ static void zread_nhg_del(ZAPI_HANDLER_ARGS)
* Delete the received nhg id
*/
- nhe = zebra_nhg_proto_del(id);
+ nhe = zebra_nhg_proto_del(id, proto);
if (nhe) {
zebra_nhg_decrement_ref(nhe);