From: wessels <> Date: Thu, 14 Sep 2000 21:41:03 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1858 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0a8e6ec2031780775ff1a39dd28ba55a35a71b22;p=thirdparty%2Fsquid.git DW: - 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. --- diff --git a/lib/rfc1035.c b/lib/rfc1035.c index 971c1590c6..37af47c66c 100644 --- a/lib/rfc1035.c +++ b/lib/rfc1035.c @@ -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);