From 11ff71648e52a79b966cc8efc7c41e2c96650f66 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 16 Nov 2017 08:49:02 -0500 Subject: [PATCH] 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 --- ripd/ripd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ripd/ripd.c b/ripd/ripd.c index 3c5451659a..b5cbc96bc3 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -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( -- 2.39.5