summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_uuid.c
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2014-02-20 08:55:59 +0000
committerbrueffer <brueffer@FreeBSD.org>2014-02-20 08:55:59 +0000
commitc34a48054549ac04376eabb976efd13ee68210a9 (patch)
treedd68f546622cea826a6ac8311296c3c2853bd48b /sys/kern/kern_uuid.c
parent43b7c0ee21c1f13af04890fd576869b791faf45a (diff)
downloadFreeBSD-src-c34a48054549ac04376eabb976efd13ee68210a9.zip
FreeBSD-src-c34a48054549ac04376eabb976efd13ee68210a9.tar.gz
MFC: r261858
Fix a bug in be_uuid_dec(); it called le16dec() instead of be16dec(), probably due to copy+pasting le_uuid_dec(). PR: 146588 Submitted by: Erwin Rol <erwin at erwinrol.com> Reviewed by: marcel
Diffstat (limited to 'sys/kern/kern_uuid.c')
-rw-r--r--sys/kern/kern_uuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_uuid.c b/sys/kern/kern_uuid.c
index fd4027b..0953d90 100644
--- a/sys/kern/kern_uuid.c
+++ b/sys/kern/kern_uuid.c
@@ -371,7 +371,7 @@ be_uuid_dec(void const *buf, struct uuid *uuid)
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];
OpenPOWER on IntegriCloud