diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-15 06:26:00 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-15 06:26:00 +0100 |
commit | 33549b6f7d4d36eef162eaabff410b295d80f1e8 (patch) | |
tree | ebbaa4c9a75eec742ccc24c5f08ee7474d3c55ed | |
parent | BUG++ (diff) | |
download | glouglou-33549b6f7d4d36eef162eaabff410b295d80f1e8.tar.xz glouglou-33549b6f7d4d36eef162eaabff410b295d80f1e8.zip |
fix network byte order of IP parsed from cmdline
-rw-r--r-- | libglouglou/examples/dnsreverse.c | 1 |
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; |