shithub: riscv

Download patch

ref: 5886b999d59e733ae46fa413a709d3bcd8c14278
parent: 840d16912a39d1207a2ceb82755f690e15f17e4b
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);