[Git][NTPsec/ntpsec][master] Fix an endian bug

Hal Murray gitlab at mg.gitlab.com
Sun Jan 22 12:55:23 UTC 2017


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
377f8825 by Hal Murray at 2017-01-22T04:54:34-08:00
Fix an endian bug

- - - - -


1 changed file:

- tests/libntp/a_md5encrypt.c


Changes:

=====================================
tests/libntp/a_md5encrypt.c
=====================================
--- a/tests/libntp/a_md5encrypt.c
+++ b/tests/libntp/a_md5encrypt.c
@@ -84,7 +84,7 @@ TEST(a_md5encrypt, IPv6AddressToRefId) {
 	SET_AF(&addr, AF_INET6);
 	SET_SOCK_ADDR6(&addr, address);
 
-	const int expected = 0x75cffd52;
+	const int expected = htonl(0x52fdcf75);
 
 	TEST_ASSERT_EQUAL(expected, addr2refid(&addr));
 }



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/377f8825634c553c69591cc7a5c1a146b3fe1d46
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170122/93223b8c/attachment.html>


More information about the vc mailing list