Merge pull request #9385 from idryzhov/bgpd-match-evpn-default-route-crash

bgpd: fix segfault when re-adding "match evpn default-route" rule
This commit is contained in:
Russ White 2021-08-17 09:54:25 -04:00 committed by GitHub
commit 55a3d3cef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1431,7 +1431,7 @@ enum rmap_compile_rets route_map_add_match(struct route_map_index *index,
* the same as the existing configuration then, * the same as the existing configuration then,
* ignore the duplicate configuration. * ignore the duplicate configuration.
*/ */
if (strcmp(match_arg, rule->rule_str) == 0) { if (rulecmp(match_arg, rule->rule_str) == 0) {
if (cmd->func_free) if (cmd->func_free)
(*cmd->func_free)(compile); (*cmd->func_free)(compile);