Ethereal-dev: [Ethereal-dev] [patch] /etc/hosts lookup

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Matthijs Melchior <mmelchior@xxxxxxxxx>
Date: Tue, 14 Oct 2003 00:23:03 +0200
Hi,
   Please apply the attached patch, it makes ethereal use /etc/hosts
again...  (there was incorrect operator priority)

Thanks.

--
Regards,
----------------------------------------------------------------  -o)
Matthijs Melchior                                       Maarssen  /\\
mmelchior@xxxxxxxxx                                  Netherlands _\_v
---------------------------------------------------------------- ----

--- epan/resolv.c-ORG	2003-08-28 01:01:21.000000000 +0200
+++ epan/resolv.c	2003-10-14 00:03:43.000000000 +0200
@@ -332,7 +332,7 @@
   tp->next = NULL;
 
 #ifdef HAVE_GNU_ADNS
-  if (g_resolv_flags & RESOLV_CONCURRENT != 0 && 
+  if ((g_resolv_flags & RESOLV_CONCURRENT) != 0 && 
       prefs.name_resolve_concurrency > 0) {
     qmsg = g_malloc(sizeof(adns_queue_msg_t));
     qmsg->type = AF_INET;