Skip to content
Permalink
Browse files

Merge pull request #4156 from ton31337/fix/allow_backslash_in_as-path…

…_regexp

bgpd: Allow backslash in as-path filter lists
  • Loading branch information...
qlyoung committed Apr 21, 2019
2 parents c02a40c + da6035e commit bb6bf8403554c7c5bc904090867856c9ac19e3ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 bgpd/bgp_filter.c
@@ -391,7 +391,7 @@ static int as_list_dup_check(struct as_list *aslist, struct as_filter *new)

static int config_bgp_aspath_validate(const char *regstr)
{
char valid_chars[] = "1234567890_^|[,{}() ]$*+.?-";
char valid_chars[] = "1234567890_^|[,{}() ]$*+.?-\\";

if (strspn(regstr, valid_chars) == strlen(regstr))
return 1;

0 comments on commit bb6bf84

Please sign in to comment.
You can’t perform that action at this time.