mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Fixes a crash when mrtdump is enabled and interface goes away.
Thanks to Peter Christensen for the bugfix.
This commit is contained in:
parent
32622d0ea3
commit
572c644043
@ -58,7 +58,7 @@ mrt_put_bgp4_hdr(byte *buf, struct bgp_conn *conn, int as4)
|
|||||||
buf+=4;
|
buf+=4;
|
||||||
}
|
}
|
||||||
|
|
||||||
put_u16(buf+0, p->neigh ? p->neigh->iface->index : 0);
|
put_u16(buf+0, (p->neigh && p->neigh->iface) ? p->neigh->iface->index : 0);
|
||||||
put_u16(buf+2, BGP_AF);
|
put_u16(buf+2, BGP_AF);
|
||||||
buf+=4;
|
buf+=4;
|
||||||
buf = ipa_put_addr(buf, conn->sk ? conn->sk->daddr : IPA_NONE);
|
buf = ipa_put_addr(buf, conn->sk ? conn->sk->daddr : IPA_NONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user