Merge pull request #11389 from ton31337/fix/some_codeql_fixes

bgpd: Minor warning fixes
This commit is contained in:
Jafar Al-Gharaibeh 2022-06-10 16:08:12 -05:00 committed by GitHub
commit d0911c6bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -9847,7 +9847,6 @@ void route_vty_out_detail(struct vty *vty, struct bgp *bgp, struct bgp_dest *bn,
char buf[INET6_ADDRSTRLEN];
char buf1[BUFSIZ];
struct attr *attr = path->attr;
int sockunion_vty_out(struct vty *, union sockunion *);
time_t tbuf;
json_object *json_bestpath = NULL;
json_object *json_cluster_list = NULL;

View File

@ -1637,7 +1637,7 @@ struct peer {
* a new value to the last_reset reason
*/
size_t last_reset_cause_size;
uint16_t last_reset_cause_size;
uint8_t last_reset_cause[BGP_MAX_PACKET_SIZE];
/* The kind of route-map Flags.*/