mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 08:32:45 +00:00
Merge pull request #4156 from ton31337/fix/allow_backslash_in_as-path_regexp
bgpd: Allow backslash in as-path filter lists
This commit is contained in:
commit
bb6bf84035
@ -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)
|
static int config_bgp_aspath_validate(const char *regstr)
|
||||||
{
|
{
|
||||||
char valid_chars[] = "1234567890_^|[,{}() ]$*+.?-";
|
char valid_chars[] = "1234567890_^|[,{}() ]$*+.?-\\";
|
||||||
|
|
||||||
if (strspn(regstr, valid_chars) == strlen(regstr))
|
if (strspn(regstr, valid_chars) == strlen(regstr))
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user