aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_resolv.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-07-06 07:55:58 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-07-06 07:55:58 +0000
commit88cb14dda3faf752e41ca6ce3f1ccac7d4920548 (patch)
tree69d680b97cec4ed134731d66d26056e98f1ef677 /epan/addr_resolv.c
parent47cee41290649513ff7c38dd44ccdd9e31ce2d1b (diff)
- remove no longer used #defines
- prefs.name_resolve_concurrency is now just 'name_resolve_concurrency' - add notes about possible (?) integer overflows. svn path=/trunk/; revision=43586
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r--epan/addr_resolv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c
index 8806f153b8..f78ce6fcfe 100644
--- a/epan/addr_resolv.c
+++ b/epan/addr_resolv.c
@@ -732,6 +732,7 @@ c_ares_ghba_cb(void *arg, int status, int timeouts _U_, struct hostent *he) {
char **p;
if (!caqm) return;
+ /* XXX, what to do if async_dns_in_flight == 0? */
async_dns_in_flight--;
if (status == ARES_SUCCESS) {
@@ -2599,7 +2600,7 @@ host_name_lookup_process(gpointer data _U_) {
async_dns_queue_head = g_list_first(async_dns_queue_head);
cur = async_dns_queue_head;
- while (cur && async_dns_in_flight <= prefs.name_resolve_concurrency) {
+ while (cur && async_dns_in_flight <= name_resolve_concurrency) {
almsg = (async_dns_queue_msg_t *) cur->data;
if (! almsg->submitted && almsg->type == AF_INET) {
addr_bytes = (guint8 *) &almsg->ip4_addr;
@@ -2630,6 +2631,7 @@ host_name_lookup_process(gpointer data _U_) {
if (dequeue) {
async_dns_queue_head = g_list_remove(async_dns_queue_head, (void *) almsg);
g_free(almsg);
+ /* XXX, what to do if async_dns_in_flight == 0? */
async_dns_in_flight--;
}
}