mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:19:13 +00:00
Merge pull request #6803 from donaldsharp/coverity_moo_moo
Coverity code cleanup
This commit is contained in:
commit
db8a7160da
@ -951,8 +951,11 @@ afibreak:
|
||||
/* initialize syncrdpos to the first
|
||||
* mid-layer table entry
|
||||
*/
|
||||
if (!bmp->syncrdpos)
|
||||
if (!bmp->syncrdpos) {
|
||||
bmp->syncrdpos = bgp_table_top(table);
|
||||
if (!bmp->syncrdpos)
|
||||
goto eor;
|
||||
}
|
||||
|
||||
/* look for a valid mid-layer table */
|
||||
do {
|
||||
|
@ -3899,6 +3899,12 @@ DEFPY (bgp_evpn_advertise_pip_ip_mac,
|
||||
struct listnode *node = NULL;
|
||||
struct bgpevpn *vpn = NULL;
|
||||
|
||||
/*
|
||||
* At this point if bgp_evpn is NULL and evpn is enabled
|
||||
* something stupid has gone wrong
|
||||
*/
|
||||
assert(bgp_evpn);
|
||||
|
||||
update_advertise_vrf_routes(bgp_vrf);
|
||||
|
||||
/* Update (svi) type-2 routes */
|
||||
|
@ -133,19 +133,20 @@ void sighup(void)
|
||||
/*
|
||||
* This is turned off for the moment. There is all
|
||||
* sorts of config turned off by bgp_terminate
|
||||
* that is not setup properly again in bgp_rest.
|
||||
* that is not setup properly again in bgp_reset.
|
||||
* I see no easy way to do this nor do I see that
|
||||
* this is a desirable way to reload config
|
||||
* given the yang work.
|
||||
*/
|
||||
/* Terminate all thread. */
|
||||
bgp_terminate();
|
||||
bgp_reset();
|
||||
zlog_info("bgpd restarting!");
|
||||
|
||||
/* Reload config file. */
|
||||
vty_read_config(NULL, bgpd_di.config_file, config_default);
|
||||
/*
|
||||
* bgp_terminate();
|
||||
* bgp_reset();
|
||||
* zlog_info("bgpd restarting!");
|
||||
|
||||
* Reload config file.
|
||||
* vty_read_config(NULL, bgpd_di.config_file, config_default);
|
||||
*/
|
||||
/* Try to return to normal operation. */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user