Skip to content

Commit

Permalink
Merge pull request #16817 from opensourcerouting/fix/backports_for_8.4
Browse files Browse the repository at this point in the history
Manual backport for 8.4
  • Loading branch information
donaldsharp authored Sep 13, 2024
2 parents ecbbda4 + ca92b81 commit fcbe34b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions bgpd/bgp_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2510,6 +2510,14 @@ static int bgp_attr_encap(struct bgp_attr_parser_args *args)
args->total);
}

if (STREAM_READABLE(BGP_INPUT(peer)) < sublength) {
zlog_err("Tunnel Encap attribute sub-tlv length %d exceeds remaining stream length %zu",
sublength, STREAM_READABLE(BGP_INPUT(peer)));
return bgp_attr_malformed(args,
BGP_NOTIFY_UPDATE_OPT_ATTR_ERR,
args->total);
}

/* alloc and copy sub-tlv */
/* TBD make sure these are freed when attributes are released */
tlv = XCALLOC(MTYPE_ENCAP_TLV,
Expand Down
3 changes: 2 additions & 1 deletion bgpd/bgp_rpki.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ static void rpki_delete_all_cache_nodes(void)
struct cache *cache;

for (ALL_LIST_ELEMENTS(cache_list, cache_node, cache_next, cache)) {
rtr_mgr_remove_group(rtr_config, cache->preference);
if (is_running())
rtr_mgr_remove_group(rtr_config, cache->preference);
listnode_delete(cache_list, cache);
}
}
Expand Down
2 changes: 1 addition & 1 deletion isisd/isis_te.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void isis_link_params_update(struct isis_circuit *circuit,
return;

/* Sanity Check */
if ((ifp == NULL) || (circuit->state != C_STATE_UP))
if (ifp == NULL)
return;

te_debug("ISIS-TE(%s): Update circuit parameters for interface %s",
Expand Down

0 comments on commit fcbe34b

Please sign in to comment.