aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-15 06:26:00 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-15 06:26:00 +0100
commit33549b6f7d4d36eef162eaabff410b295d80f1e8 (patch)
treeebbaa4c9a75eec742ccc24c5f08ee7474d3c55ed /libglouglou
parentBUG++ (diff)
downloadglouglou-33549b6f7d4d36eef162eaabff410b295d80f1e8.tar.xz
glouglou-33549b6f7d4d36eef162eaabff410b295d80f1e8.zip
fix network byte order of IP parsed from cmdline
Diffstat (limited to 'libglouglou')
-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;