summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/resolv/ares/ares_parse_srv_reply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resolv/ares/ares_parse_srv_reply.c b/src/resolv/ares/ares_parse_srv_reply.c
index 086c4dba0..7e01e1a6d 100644
--- a/src/resolv/ares/ares_parse_srv_reply.c
+++ b/src/resolv/ares/ares_parse_srv_reply.c
@@ -143,11 +143,11 @@ int _ares_parse_srv_reply (const unsigned char *abuf, int alen,
srv_last = srv_curr;
vptr = aptr;
- srv_curr->priority = ntohs (*((const unsigned short *)vptr));
+ srv_curr->priority = DNS__16BIT(vptr);
vptr += sizeof(const unsigned short);
- srv_curr->weight = ntohs (*((const unsigned short *)vptr));
+ srv_curr->weight = DNS__16BIT(vptr);
vptr += sizeof(const unsigned short);
- srv_curr->port = ntohs (*((const unsigned short *)vptr));
+ srv_curr->port = DNS__16BIT(vptr);
vptr += sizeof(const unsigned short);
status = ares_expand_name (vptr, abuf, alen, &srv_curr->host, &len);