aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou/examples/dnsreverse.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglouglou/examples/dnsreverse.c')
-rw-r--r--libglouglou/examples/dnsreverse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglouglou/examples/dnsreverse.c b/libglouglou/examples/dnsreverse.c
index 33b0f75..3b6e5fd 100644
--- a/libglouglou/examples/dnsreverse.c
+++ b/libglouglou/examples/dnsreverse.c
@@ -24,6 +24,7 @@ main(int argc, char *argv[])
exit(1);
}
inet_aton(argv[1], &ip);
+ ip.s_addr = ntohl(ip.s_addr);
bzero(&tv, sizeof(struct timeval));
tv.tv_sec = 5;