Issue Found by Coverity Scan. When we call peer_clear we
are checking the return code in every other call. Add
a bit of extra code to notice the failure and note it.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
"%s Maximum-prefix restart timer expired, restore peering",
peer->host);
- peer_clear(peer, NULL);
+ if ((peer_clear(peer, NULL) < 0) && bgp_debug_neighbor_events(peer))
+ zlog_debug("%s: %s peer_clear failed",
+ __PRETTY_FUNCTION__, peer->host);
return 0;
}