mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:30:30 +00:00
ospf6d: Fix debug string in rare case
When looking up the o_path->ls_prefix if it is not found the debug statement was using a buf that was never initialized. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
9ffafdd76b
commit
6926bedfb3
@ -1495,7 +1495,6 @@ void ospf6_intra_prefix_route_ecmp_path(struct ospf6_area *oa,
|
||||
struct listnode *anode, *anext;
|
||||
struct listnode *nnode, *rnode, *rnext;
|
||||
struct ospf6_nexthop *nh, *rnh;
|
||||
char buf[PREFIX2STR_BUFFER];
|
||||
bool route_found = false;
|
||||
struct interface *ifp = NULL;
|
||||
struct ospf6_lsa *lsa;
|
||||
@ -1679,8 +1678,9 @@ void ospf6_intra_prefix_route_ecmp_path(struct ospf6_area *oa,
|
||||
if (ls_entry == NULL) {
|
||||
if (IS_OSPF6_DEBUG_EXAMIN(INTRA_PREFIX))
|
||||
zlog_debug(
|
||||
"%s: ls_prfix %s ls_entry not found.",
|
||||
__func__, buf);
|
||||
"%s: ls_prfix %pFX ls_entry not found.",
|
||||
__func__,
|
||||
&o_path->ls_prefix);
|
||||
continue;
|
||||
}
|
||||
lsa = ospf6_lsdb_lookup(o_path->origin.type,
|
||||
|
Loading…
Reference in New Issue
Block a user