fix sin_port = 53 when it should be network order
(note that it doesn't actually matter because we only use this for a source ip lookup)
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ie2e5e65ee47a73502b01fc01ecc930740cf04a78
diff --git a/server/ClatdController.cpp b/server/ClatdController.cpp
index bf29693..cf0ab96 100644
--- a/server/ClatdController.cpp
+++ b/server/ClatdController.cpp
@@ -142,7 +142,7 @@
// same then the address is already assigned to the system and we can't use it.
struct sockaddr_in sin = {
.sin_family = AF_INET,
- .sin_port = 53,
+ .sin_port = htons(53),
.sin_addr = {addr},
};
socklen_t len = sizeof(sin);