fix for 1.1.alpha7 "tty input" bug

From: Duane Wessels <wessels>
Date: Mon, 12 Aug 96 16:23:41 -0700

Index: src/comm.c
===================================================================
RCS file: /surf1/CVS/squid/src/comm.c,v
retrieving revision 1.49
diff -w -u -r1.49 comm.c
--- comm.c 1996/07/26 20:34:12 1.49
+++ comm.c 1996/08/12 22:33:42
@@ -329,6 +329,7 @@
     }
     xmemcpy(&to_addr.sin_addr, hp->h_addr, hp->h_length);
     to_addr.sin_port = htons(dest_port);
+ if (Config.Log.log_fqdn)
     fqdncache_gethostbyaddr(to_addr.sin_addr, FQDN_LOOKUP_IF_MISS);
     return comm_connect_addr(sock, &to_addr);
 }
Index: src/fqdncache.c
===================================================================
RCS file: /surf1/CVS/squid/src/fqdncache.c,v
retrieving revision 1.6
diff -w -u -r1.6 fqdncache.c
--- fqdncache.c 1996/07/26 19:43:56 1.6
+++ fqdncache.c 1996/08/12 22:36:32
@@ -849,7 +849,6 @@
 /* initialize the fqdncache */
 void fqdncache_init()
 {
-
     debug(35, 3, "Initializing FQDN Cache...\n");
 
     memset(&FqdncacheStats, '\0', sizeof(FqdncacheStats));
@@ -904,6 +903,8 @@
     struct hostent *hp = NULL;
     unsigned int ip;
 
+ if (fqdn_table == 0)
+ return NULL;
     if (!name)
         fatal_dump("fqdncache_gethostbyaddr: NULL name");
     FqdncacheStats.requests++;
Received on Mon Aug 12 1996 - 16:23:42 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:47 MST