Merge pull request #2078 from dslicenc/fix-import-table-fix

zebra: fix flaw in fix for import-table crash
This commit is contained in:
Rafael Zalamena 2018-04-18 10:21:38 -03:00 committed by GitHub
commit c477dd0e7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}