projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc8623f
)
dns: avoid returning token for queries already reported
author
Marko Kreen
<markokr@gmail.com>
Wed, 17 Nov 2010 15:36:27 +0000
(17:36 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Wed, 17 Nov 2010 15:36:27 +0000
(17:36 +0200)
src/dnslookup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/dnslookup.c
b/src/dnslookup.c
index 245769e8a90d9e756751474d707976d2aafe95ec..a639e8544f9c10ae1c8c2beaf813082161afbb2f 100644
(file)
--- a/
src/dnslookup.c
+++ b/
src/dnslookup.c
@@
-438,10
+438,12
@@
struct DNSToken *adns_resolve(struct DNSContext *ctx, const char *name, adns_cal
log_noise("dns: ttl over: %s", req->name);
req_reset(req);
impl_launch_query(req);
- } else
+ } else
{
deliver_info(req);
+ }
}
- return ucb;
+ /* if ->done, then we have already reported */
+ return req->done ? NULL : ucb;
nomem:
log_warning("dns(%s): req failed, no mem", name);
cb_func(cb_arg, NULL, 0);