ripd: Fix SA issues

The rinfo variable was being set but never used.

We just need to call rip_ecmp_replace or rip_ecmp_add
this function does not care about the return values
because the rinfo returned is stored on the rip
route entry.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-11-16 08:49:02 -05:00
parent 9de1f7ff13
commit 11ff71648e

View File

@ -1512,10 +1512,10 @@ void rip_redistribute_add(int type, int sub_type, struct prefix_ipv4 *p,
}
}
rinfo = rip_ecmp_replace(&newinfo);
(void)rip_ecmp_replace(&newinfo);
route_unlock_node(rp);
} else
rinfo = rip_ecmp_add(&newinfo);
(void)rip_ecmp_add(&newinfo);
if (IS_RIP_DEBUG_EVENT) {
zlog_debug(