shithub: front

Download patch

ref: 605bed312a0a24db6cce2f7170353351cbddbd2d
parent: 5ae675bebd921fb0c2d2f929ba651bbb3a67c573
author: Jacob Moody <moody@posixcafe.org>
date: Fri Jul 26 18:03:34 EDT 2024

devip: fix masks in ipmux filters

We were accidentally searching the key for '&', instead of the value.
Inferno received this exact fix at some point, but it never made it back to Plan 9.

--- a/sys/src/9/ip/ipmux.c
+++ b/sys/src/9/ip/ipmux.c
@@ -212,7 +212,7 @@
 		goto parseerror;
 
 	/* parse mask */
-	mask = follows(p, '&');
+	mask = follows(val, '&');
 	if(mask != nil){
 		switch(f->type){
 		case Tsrc:
--