DragonFlyBSD Kernel Audit
DF-1108 / fix.diff
← back to finding ↓ download raw
--- /tmp/orig/platform/pc64/x86_64/autoconf.c	2026-07-23 11:54:56.934917000 +0000
+++ platform/pc64/x86_64/autoconf.c	2026-07-23 11:57:17.676284000 +0000
@@ -286,11 +286,11 @@
 			return(len);
 		if ((ksscanf(cp, "%2x", &val) != 1) || (val > 0xff))
 			return(0);
-		*(fh++) = val;
 		len++;
 		cp += 2;
 		if (len > NFSX_V2FH)
 		    return(0);
+		*(fh++) = val;
 	}
 }