devbridge: fix vlan range parsing

This commit is contained in:
cinap_lenrek 2022-02-27 13:32:58 +00:00
parent 840d16912a
commit 5886b999d5

View file

@ -586,7 +586,7 @@ vlanrange(char *s, int *i, int *j)
/* -nnn */
*j = -(*i);
*i = 1;
} else if(*s == '-') {
} else if(*x == '-') {
/* nnn- */
s = x;
*j = -strtol(s, &x, 10);