mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 06:14:35 +00:00
Merge pull request #4813 from NaveenThanikachalam/604
bgpd: Standard large-communities CLI does not return error when it's configured with reg-ex.
This commit is contained in:
commit
1d6358e6cb
@ -439,7 +439,8 @@ struct lcommunity *lcommunity_str2com(const char *str)
|
||||
enum lcommunity_token token = lcommunity_token_unknown;
|
||||
struct lcommunity_val lval;
|
||||
|
||||
while ((str = lcommunity_gettoken(str, &lval, &token))) {
|
||||
do {
|
||||
str = lcommunity_gettoken(str, &lval, &token);
|
||||
switch (token) {
|
||||
case lcommunity_token_val:
|
||||
if (lcom == NULL)
|
||||
@ -452,7 +453,8 @@ struct lcommunity *lcommunity_str2com(const char *str)
|
||||
lcommunity_free(&lcom);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
} while (str);
|
||||
|
||||
return lcom;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user