]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #834,#846: fqdn lookups sometimes returns garbage
authorhno <>
Thu, 4 Dec 2003 17:17:16 +0000 (17:17 +0000)
committerhno <>
Thu, 4 Dec 2003 17:17:16 +0000 (17:17 +0000)
src/fqdncache.cc

index c1b2ad248c73bccba48f7dec54081b5590dfee35..34ab2c5494d0ab869c112414cc89bfd458c01758 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: fqdncache.cc,v 1.156 2003/10/11 22:33:51 hno Exp $
+ * $Id: fqdncache.cc,v 1.157 2003/12/04 10:17:16 hno Exp $
  *
  * DEBUG: section 35    FQDN Cache
  * AUTHOR: Harvest Derived
@@ -364,7 +364,7 @@ fqdncacheParse(rfc1035_rr * answers, int nr)
 
         f.flags.negcached = 0;
 
-        f.names[0] = xstrdup(answers[k].rdata);
+        f.names[0] = xstrndup(answers[k].rdata, answers[k].rdlength);
 
         f.name_count = 1;