]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Remove unused addition found in clang 15850/head
authorDonald Sharp <sharpd@nvidia.com>
Thu, 25 Apr 2024 18:45:32 +0000 (14:45 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 25 Apr 2024 18:45:32 +0000 (14:45 -0400)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_packet.c

index 78554893ff152d644dbe1a95a1260322e64f3f40..9c194eac1c2ac0cd5f60652e6ecb4ef993cd9a3b 100644 (file)
@@ -3734,7 +3734,10 @@ static int bgp_capability_msg_parse(struct peer *peer, uint8_t *pnt,
                        zlog_err("%pBP: Capability length error", peer);
                        bgp_notify_send(peer->connection, BGP_NOTIFY_CEASE,
                                        BGP_NOTIFY_SUBCODE_UNSPECIFIC);
-                       pnt += length;
+                       /*
+                        * If we did not return then
+                        * pnt += length;
+                        */
                        return BGP_Stop;
                }
                action = *pnt;
@@ -3759,7 +3762,10 @@ static int bgp_capability_msg_parse(struct peer *peer, uint8_t *pnt,
                        zlog_err("%pBP: Capability length error", peer);
                        bgp_notify_send(peer->connection, BGP_NOTIFY_CEASE,
                                        BGP_NOTIFY_SUBCODE_UNSPECIFIC);
-                       pnt += length;
+                       /*
+                        * If we did not return then
+                        * pnt += length;
+                        */
                        return BGP_Stop;
                }