diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-11-16 08:49:02 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-11-16 08:49:02 -0500 |
| commit | 11ff71648e52a79b966cc8efc7c41e2c96650f66 (patch) | |
| tree | e662957d91bdf788fcaa10371a75657460cf7462 | |
| parent | 9de1f7ff13889391e72162a50619b2ff275209f4 (diff) | |
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>
| -rw-r--r-- | ripd/ripd.c | 4 |
1 files 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( |
