]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix $fail parsing
authorwessels <>
Sun, 24 Nov 1996 11:33:00 +0000 (11:33 +0000)
committerwessels <>
Sun, 24 Nov 1996 11:33:00 +0000 (11:33 +0000)
src/fqdncache.cc
src/ipcache.cc

index 730ac295647e183b45aea4c141c57c9912242324..b719953799827330dfefdb44432391e195883539 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: fqdncache.cc,v 1.40 1996/11/24 02:55:56 wessels Exp $
+ * $Id: fqdncache.cc,v 1.41 1996/11/24 04:33:00 wessels Exp $
  *
  * DEBUG: section 35    FQDN Cache
  * AUTHOR: Harvest Derived
@@ -462,7 +462,7 @@ fqdncache_parsebuffer(const char *inbuf, dnsserver_t * dnsData)
        } else if (!strcmp(token, "$alive")) {
            dnsData->answer = squid_curtime;
        } else if (!strcmp(token, "$fail")) {
-           if ((token = strtok(NULL, w_space)) == NULL)
+           if ((token = strtok(NULL, "\n")) == NULL)
                fatal_dump("Invalid $fail");
            f.expires = squid_curtime + Config.negativeDnsTtl;
            f.status = FQDN_NEGATIVE_CACHED;
index 94839a770bd700f060e984305f07425edb77cf01..534439fd5b4f4fa5ca3355194603615ce29ca309 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ipcache.cc,v 1.88 1996/11/22 08:38:51 wessels Exp $
+ * $Id: ipcache.cc,v 1.89 1996/11/24 04:33:00 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -491,7 +491,7 @@ ipcache_parsebuffer(const char *inbuf, dnsserver_t * dnsData)
        } else if (!strcmp(token, "$alive")) {
            dnsData->answer = squid_curtime;
        } else if (!strcmp(token, "$fail")) {
-           if ((token = strtok(NULL, w_space)) == NULL)
+           if ((token = strtok(NULL, "\n")) == NULL)
                fatal_dump("Invalid $fail");
            i.expires = squid_curtime + Config.negativeDnsTtl;
            i.status = IP_NEGATIVE_CACHED;