]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix 2 more cases of length error reporting
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 26 Oct 2011 15:34:30 +0000 (19:34 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 21 Nov 2011 14:35:32 +0000 (18:35 +0400)
* bgp_attr.c (bgp_attr_originator_id, bgp_attr_cluster_list): use
  bgp_notify_send_with_data()

bgpd/bgp_attr.c

index 829b01762bc568e41b31cf5e5e211dabd5f43e0a..4967e09a679b075d65ea5481ae167e805aea6607 100644 (file)
@@ -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;
     }