From 9fd2775fe1ced6ff6a9a3ff7db124fcb52dade5d Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 3 May 2012 12:51:55 +0200 Subject: Fix endian issue in SID conversion Since the byte-order is only important when dealing with the binary SID the sub-auth values are stored in host order and are only converted while reading or writing the binary SID. --- src/util/util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util') diff --git a/src/util/util.h b/src/util/util.h index bfa05464..2912f899 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -546,8 +546,10 @@ struct sss_domain_info *copy_subdomain(TALLOC_CTX *mem_ctx, /* Conversion interfaces. */ # if __BYTE_ORDER == __LITTLE_ENDIAN # define le32toh(x) (x) +# define htole32(x) (x) # else # define le32toh(x) __bswap_32 (x) +# define htole32(x) __bswap_32 (x) # endif #endif /* __USE_BSD */ -- cgit