Merge pull request #15850 from donaldsharp/sa_clang_15_some_problems

bgpd: Remove unused addition found in clang
This commit is contained in:
Mark Stapp 2024-04-26 08:01:26 -04:00 committed by GitHub
commit 8d2c255d26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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;
}