diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-15 05:51:05 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-15 05:51:05 +0100 |
commit | 0f01f75c5e703a9af28792ffc587984a7410481d (patch) | |
tree | 42f4cba427a3378e0b0a9c13fe5a7b7d423253ae /libglouglou | |
parent | wait 5 seconds maximum, and differentiate error from no answer (diff) | |
download | glouglou-0f01f75c5e703a9af28792ffc587984a7410481d.tar.xz glouglou-0f01f75c5e703a9af28792ffc587984a7410481d.zip |
do not call ggnet user callback if we do not get a positive answer from the
PTR query
Diffstat (limited to 'libglouglou')
-rw-r--r-- | libglouglou/libggnet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libglouglou/libggnet.c b/libglouglou/libggnet.c index 2dfb5d3..10c2cf5 100644 --- a/libglouglou/libggnet.c +++ b/libglouglou/libggnet.c @@ -488,8 +488,9 @@ _cb_dns_reverse(struct in_addr *ip, char *name, void *data) n = data; net = n->net; n->dns_req = NULL; - if (name) + if (name) { snprintf(n->fqdn, sizeof(n->fqdn), "%s", name); - net->cb_nodename(net, n); + net->cb_nodename(net, n); + } } |