When using "match evpn default-route" rule, match_arg is NULL and strcmp
is not happy with that. There's already a special function named rulecmp
that handles such situations.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit
30475121ad590f8e44ebb2601776ae94df976069)
* the same as the existing configuration then,
* ignore the duplicate configuration.
*/
- if (strcmp(match_arg, rule->rule_str) == 0) {
+ if (rulecmp(match_arg, rule->rule_str) == 0) {
if (cmd->func_free)
(*cmd->func_free)(compile);