Skip to content

Commit

Permalink
bgpd: Remove unused addition found in clang
Browse files Browse the repository at this point in the history
Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Apr 25, 2024
1 parent a6040ba commit b4c64b3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bgpd/bgp_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit b4c64b3

Please sign in to comment.