mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 08:50:26 +00:00
ripd: Fix crash when a default route is passed to rip
When rip is not configured and zebra decides to send a default route to it, check to make sure that rip is configured before accepting anything from zebra. Ticket: CM-9270 Reviewed-by: Don Slice Tested: OSPF test case that was erroring out no longer happens Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
179f784933
commit
b3556ea327
@ -106,7 +106,10 @@ rip_zebra_read_ipv4 (int command, struct zclient *zclient, zebra_size_t length,
|
||||
unsigned long ifindex;
|
||||
struct in_addr nexthop;
|
||||
struct prefix_ipv4 p;
|
||||
|
||||
|
||||
if (!rip)
|
||||
return 0;
|
||||
|
||||
s = zclient->ibuf;
|
||||
ifindex = 0;
|
||||
nexthop.s_addr = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user