diff options
| author | Mark Stapp <mjs.ietf@gmail.com> | 2024-04-26 08:01:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-26 08:01:26 -0400 |
| commit | 8d2c255d26433679b957f191ef812c65bf80b613 (patch) | |
| tree | cbcec9d6ed9086e4e1e340d5cc00523e9bf9531b | |
| parent | f8e9f7fb0e7d7efb9cad8eb3df6dff5acf7676bd (diff) | |
| parent | b4c64b3a39da0acb053a7d527aee9a5a3ab35133 (diff) | |
Merge pull request #15850 from donaldsharp/sa_clang_15_some_problems
bgpd: Remove unused addition found in clang
| -rw-r--r-- | bgpd/bgp_packet.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 78554893ff..9c194eac1c 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -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; } |
