bgpd: fix 2 more cases of length error reporting
* bgp_attr.c (bgp_attr_originator_id, bgp_attr_cluster_list): provide
required arguments to bgp_attr_malformed()
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index 75b7c79..29877eb 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -1396,7 +1396,7 @@
return bgp_attr_malformed (peer, BGP_ATTR_ORIGINATOR_ID, flag,
BGP_NOTIFY_UPDATE_ATTR_LENG_ERR,
- NULL, 0);
+ startp, total);
}
(bgp_attr_extra_get (attr))->originator_id.s_addr
@@ -1435,7 +1435,7 @@
return bgp_attr_malformed (peer, BGP_ATTR_CLUSTER_LIST, flag,
BGP_NOTIFY_UPDATE_ATTR_LENG_ERR,
- NULL, 0);
+ startp, total);
}
(bgp_attr_extra_get (attr))->cluster