From 97578bc5edf1edef1e0927ca02596ee6e9df1ff0 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 18 May 2021 18:55:12 +0100 Subject: [PATCH] Fix fallback/big-endian store_le16() and store_le32() These were swapped. Signed-off-by: David Woodhouse --- openconnect-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openconnect-internal.h b/openconnect-internal.h index cc4de49a..0acaa70a 100644 --- a/openconnect-internal.h +++ b/openconnect-internal.h @@ -1496,14 +1496,14 @@ static inline uint16_t load_le16(const void *_p) return p[0] | (p[1] << 8); } -static inline void store_le32(void *_p, uint32_t d) +static inline void store_le16(void *_p, uint32_t d) { unsigned char *p = _p; p[0] = d; p[1] = d >> 8; } -static inline void store_le16(void *_p, uint16_t d) +static inline void store_le32(void *_p, uint16_t d) { unsigned char *p = _p; p[0] = d; -- 2.49.0