]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2250: double-freeing memory in http_port name= option code.
authoramosjeffries <>
Tue, 4 Mar 2008 19:00:36 +0000 (19:00 +0000)
committeramosjeffries <>
Tue, 4 Mar 2008 19:00:36 +0000 (19:00 +0000)
- Seems it was only a strdup / xstrdup problem

src/cache_cf.cc

index 12aff3d64c76979b303b8034418a877f25cf0f97..75a4a16263b10363d83729348e9e2a26d60fa5f9 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.543 2008/02/26 00:15:48 rousskov Exp $
+ * $Id: cache_cf.cc,v 1.544 2008/03/04 12:00:36 amosjeffries Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -2829,7 +2829,7 @@ parse_http_port_specification(http_port_list * s, char *token)
     char *junk = NULL;
 
     s->disable_pmtu_discovery = DISABLE_PMTU_OFF;
-    s->name = strdup(token);
+    s->name = xstrdup(token);
 
 #if USE_IPV6
     if (*token == '[') {