diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2011-10-26 19:34:30 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-10-26 19:38:49 +0400 |
commit | 267551879e57a5c590f9e12b3a7d6985b28b3dac (patch) | |
tree | aeb0f826f3ea541de99d0988794f1454ab3b9e35 | |
parent | b4cd2421518be7e18046e974e25b9bf4cf769bd2 (diff) |
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()
-rw-r--r-- | bgpd/bgp_attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 75b7c797..29877eb7 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -1396,7 +1396,7 @@ bgp_attr_originator_id (struct peer *peer, bgp_size_t length, 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 @@ bgp_attr_cluster_list (struct peer *peer, bgp_size_t length, 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 |