From 85c615ac306123ed1342e55d39d9f042f5205617 Mon Sep 17 00:00:00 2001 From: Don Slice Date: Tue, 17 Apr 2018 10:48:30 -0700 Subject: [PATCH] zebra: fix flaw in fix for import-table crash Realized (with coverity's help) the fix had a mistake by pasting in the wrong route entry to unset the selected flag. This fix takes care of that mistake. Signed-off-by: Don Slice --- zebra/redistribute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/redistribute.c b/zebra/redistribute.c index 6a7a75f209..2e19d6fb75 100644 --- a/zebra/redistribute.c +++ b/zebra/redistribute.c @@ -531,7 +531,7 @@ int zebra_add_import_table_entry(struct route_node *rn, struct route_entry *re, re->tag, rmap_name); if (ret != RMAP_MATCH) { - UNSET_FLAG(same->flags, ZEBRA_FLAG_SELECTED); + UNSET_FLAG(re->flags, ZEBRA_FLAG_SELECTED); zebra_del_import_table_entry(rn, re); return 0; } -- 2.39.5