diff options
Diffstat (limited to 'src/query.c')
-rw-r--r-- | src/query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/query.c b/src/query.c index 1b66df9..b59513e 100644 --- a/src/query.c +++ b/src/query.c @@ -252,7 +252,7 @@ static int recv_dns_packet(int fd, struct dns_packet **ret_packet, uint8_t* ret_ for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL; cmsg = CMSG_NXTHDR(&msg,cmsg)) { if (cmsg->cmsg_level == SOL_IP && cmsg->cmsg_type == IP_TTL) { - *ret_ttl = (uint8_t) ntohl(*(uint32_t*)CMSG_DATA(cmsg)); + *ret_ttl = (uint8_t) (*(uint32_t*) CMSG_DATA(cmsg)); break; } } |