git: 9front

Download patch

ref: 3af4fa5f99c48fd52d97db9de541ead22b765d72
parent: ed46b91adca518163561728716e803016d6d519d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 27 08:32:58 EST 2022

devbridge: fix vlan range parsing

--- a/sys/src/9/port/devbridge.c
+++ b/sys/src/9/port/devbridge.c
@@ -586,7 +586,7 @@
 		/* -nnn */
 		*j = -(*i);
 		*i = 1;
-	} else if(*s == '-') {
+	} else if(*x == '-') {
 		/* nnn- */
 		s = x;
 		*j = -strtol(s, &x, 10);
--