mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 16:06:20 +00:00
Merge pull request #15850 from donaldsharp/sa_clang_15_some_problems
bgpd: Remove unused addition found in clang
This commit is contained in:
commit
8d2c255d26
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user