From fc409ecf0a2932dfccb55a36855e580305e578f3 Mon Sep 17 00:00:00 2001 From: amosjeffries <> Date: Tue, 4 Mar 2008 19:10:00 +0000 Subject: [PATCH] Bug 2250: double-freeing memory in http_port name= option code. - Seems it was only a strdup / xstrdup problem --- src/cache_cf.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 73617e7ada..89deda6176 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.528.2.7 2008/02/27 05:51:06 amosjeffries Exp $ + * $Id: cache_cf.cc,v 1.528.2.8 2008/03/04 12:10:00 amosjeffries Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -2810,7 +2810,7 @@ parse_http_port_specification(http_port_list * s, char *token) char *t; s->disable_pmtu_discovery = DISABLE_PMTU_OFF; - s->name = strdup(token); + s->name = xstrdup(token); if ((t = strchr(token, ':'))) { /* host:port */ -- 2.47.2