From: Denis Ovsienko Date: Wed, 26 Oct 2011 15:34:30 +0000 (+0400) Subject: bgpd: fix 2 more cases of length error reporting X-Git-Tag: frr-2.0-rc1~1918^2~42 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0f572cde26208254f779933f0e8ec953ad2a3a8a;p=mirror%2Ffrr.git bgpd: fix 2 more cases of length error reporting * bgp_attr.c (bgp_attr_originator_id, bgp_attr_cluster_list): use bgp_notify_send_with_data() --- diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 829b01762b..4967e09a67 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -1354,9 +1354,10 @@ bgp_attr_originator_id (struct peer *peer, bgp_size_t length, { zlog (peer->log, LOG_ERR, "Bad originator ID length %d", length); - bgp_notify_send (peer, - BGP_NOTIFY_UPDATE_ERR, - BGP_NOTIFY_UPDATE_ATTR_LENG_ERR); + bgp_notify_send_with_data (peer, + BGP_NOTIFY_UPDATE_ERR, + BGP_NOTIFY_UPDATE_ATTR_LENG_ERR, + startp, total); return -1; } @@ -1388,9 +1389,10 @@ bgp_attr_cluster_list (struct peer *peer, bgp_size_t length, { zlog (peer->log, LOG_ERR, "Bad cluster list length %d", length); - bgp_notify_send (peer, - BGP_NOTIFY_UPDATE_ERR, - BGP_NOTIFY_UPDATE_ATTR_LENG_ERR); + bgp_notify_send_with_data (peer, + BGP_NOTIFY_UPDATE_ERR, + BGP_NOTIFY_UPDATE_ATTR_LENG_ERR, + startp, total); return -1; }