diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2023-05-03 17:01:36 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2023-05-03 17:01:36 -0300 |
| commit | bf384bbc90017d4b9f3aa3448a4665ae0aafb4d7 (patch) | |
| tree | a855072421d6cdc9ce2bcda859435aa8933e1083 /ripd | |
| parent | abecbc3df159cec855cbbc64e48010662f4e7a04 (diff) | |
ripd: fix null-pointer dereference
Fixes #13416.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd')
| -rw-r--r-- | ripd/rip_interface.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c index b383be042a..9f1e2d86bf 100644 --- a/ripd/rip_interface.c +++ b/ripd/rip_interface.c @@ -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. */ |
