mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 04:47:05 +00:00
bgpd: Remove unused addition found in clang
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
a6040ba1f5
commit
b4c64b3a39
@ -3734,7 +3734,10 @@ static int bgp_capability_msg_parse(struct peer *peer, uint8_t *pnt,
|
|||||||
zlog_err("%pBP: Capability length error", peer);
|
zlog_err("%pBP: Capability length error", peer);
|
||||||
bgp_notify_send(peer->connection, BGP_NOTIFY_CEASE,
|
bgp_notify_send(peer->connection, BGP_NOTIFY_CEASE,
|
||||||
BGP_NOTIFY_SUBCODE_UNSPECIFIC);
|
BGP_NOTIFY_SUBCODE_UNSPECIFIC);
|
||||||
pnt += length;
|
/*
|
||||||
|
* If we did not return then
|
||||||
|
* pnt += length;
|
||||||
|
*/
|
||||||
return BGP_Stop;
|
return BGP_Stop;
|
||||||
}
|
}
|
||||||
action = *pnt;
|
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);
|
zlog_err("%pBP: Capability length error", peer);
|
||||||
bgp_notify_send(peer->connection, BGP_NOTIFY_CEASE,
|
bgp_notify_send(peer->connection, BGP_NOTIFY_CEASE,
|
||||||
BGP_NOTIFY_SUBCODE_UNSPECIFIC);
|
BGP_NOTIFY_SUBCODE_UNSPECIFIC);
|
||||||
pnt += length;
|
/*
|
||||||
|
* If we did not return then
|
||||||
|
* pnt += length;
|
||||||
|
*/
|
||||||
return BGP_Stop;
|
return BGP_Stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user