Skip to content

Commit

Permalink
ripd: fix null-pointer dereference
Browse files Browse the repository at this point in the history
Fixes #13416.

Signed-off-by: Renato Westphal <[email protected]>
  • Loading branch information
rwestphal committed May 3, 2023
1 parent abecbc3 commit bf384bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ripd/rip_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1110,9 +1110,10 @@ void rip_interface_sync(struct interface *ifp)
struct rip_interface *ri;

ri = ifp->info;
ri->ifp = ifp;
if (ri)
if (ri) {
ri->rip = ifp->vrf->info;
ri->ifp = ifp;
}
}

/* Called when interface structure allocated. */
Expand Down

0 comments on commit bf384bb

Please sign in to comment.