mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 00:59:13 +00:00
isisd: check interface pointer before accessing
On some cases (protocol convergence down or daemon exit) we'll have the interface pointer in the circuit as `NULL`, so don't attempt to access it. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
f3e1d2241e
commit
c2afd32f36
@ -263,9 +263,10 @@ static void bfd_handle_adj_down(struct isis_adjacency *adj)
|
||||
ZEBRA_BFD_DEST_DEREGISTER);
|
||||
|
||||
bfd_peer_sendmsg(zclient, NULL, adj->bfd_session->family,
|
||||
&adj->bfd_session->dst_ip,
|
||||
&adj->bfd_session->src_ip,
|
||||
adj->circuit->interface->name,
|
||||
&adj->bfd_session->dst_ip, &adj->bfd_session->src_ip,
|
||||
(adj->circuit->interface)
|
||||
? adj->circuit->interface->name
|
||||
: NULL,
|
||||
0, /* ttl */
|
||||
0, /* multihop */
|
||||
1, /* control plane independent bit is on */
|
||||
@ -324,7 +325,9 @@ static void bfd_handle_adj_up(struct isis_adjacency *adj, int command)
|
||||
bfd_peer_sendmsg(zclient, circuit->bfd_info, adj->bfd_session->family,
|
||||
&adj->bfd_session->dst_ip,
|
||||
&adj->bfd_session->src_ip,
|
||||
circuit->interface->name,
|
||||
(adj->circuit->interface)
|
||||
? adj->circuit->interface->name
|
||||
: NULL,
|
||||
0, /* ttl */
|
||||
0, /* multihop */
|
||||
1, /* control plane independent bit is on */
|
||||
|
Loading…
Reference in New Issue
Block a user