DragonFlyBSD Kernel Audit
DF-0156 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/kern/kern_uuid.c b/sys/kern/kern_uuid.c
--- a/sys/kern/kern_uuid.c
+++ b/sys/kern/kern_uuid.c
@@ -358,7 +358,7 @@
 
 	p = buf;
 	uuid->time_low = be32dec(p);
-	uuid->time_mid = le16dec(p + 4);
+	uuid->time_mid = be16dec(p + 4);
 	uuid->time_hi_and_version = be16dec(p + 6);
 	uuid->clock_seq_hi_and_reserved = p[8];
 	uuid->clock_seq_low = p[9];