mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 22:03:12 +00:00
ripd: fix null-pointer dereference
Fixes #13416. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
abecbc3df1
commit
bf384bbc90
@ -1110,9 +1110,10 @@ void rip_interface_sync(struct interface *ifp)
|
|||||||
struct rip_interface *ri;
|
struct rip_interface *ri;
|
||||||
|
|
||||||
ri = ifp->info;
|
ri = ifp->info;
|
||||||
ri->ifp = ifp;
|
if (ri) {
|
||||||
if (ri)
|
|
||||||
ri->rip = ifp->vrf->info;
|
ri->rip = ifp->vrf->info;
|
||||||
|
ri->ifp = ifp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Called when interface structure allocated. */
|
/* Called when interface structure allocated. */
|
||||||
|
Loading…
Reference in New Issue
Block a user