]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Thu, 14 Sep 2000 21:41:03 +0000 (21:41 +0000)
committerwessels <>
Thu, 14 Sep 2000 21:41:03 +0000 (21:41 +0000)
 - Note that the parsing code has a bug that treats names like
   www...foo....com the same as www.foo.com.  No fix at this time.

lib/rfc1035.c

index 971c1590c659a1aa3691833ef3d3b4a1c8997633..37af47c66c207c8f1ba790746d652d8d81f2dcb3 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: rfc1035.c,v 1.17 2000/07/14 17:45:54 wessels Exp $
+ * $Id: rfc1035.c,v 1.18 2000/09/14 15:41:03 wessels Exp $
  *
  * Low level DNS protocol routines
  * AUTHOR: Duane Wessels
@@ -180,6 +180,9 @@ rfc1035NamePack(char *buf, size_t sz, const char *name)
     off_t off = 0;
     char *copy = strdup(name);
     char *t;
+    /*
+     * NOTE: use of strtok here makes names like foo....com valid.
+     */
     for (t = strtok(copy, "."); t; t = strtok(NULL, "."))
        off += rfc1035LabelPack(buf + off, sz - off, t);
     free(copy);