From: amosjeffries <> Date: Tue, 27 Nov 2007 14:48:40 +0000 (+0000) Subject: Fix SegFault when NetDB asked to ping a zero-length domain/hostname X-Git-Tag: SQUID_3_0_STABLE1~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2eaf5ca0467a5dcf7539c42f2698b64cc6fd4fea;p=thirdparty%2Fsquid.git Fix SegFault when NetDB asked to ping a zero-length domain/hostname --- diff --git a/src/net_db.cc b/src/net_db.cc index c0b4062430..96ceead08a 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -1,6 +1,6 @@ /* - * $Id: net_db.cc,v 1.197 2007/08/27 12:50:43 hno Exp $ + * $Id: net_db.cc,v 1.198 2007/11/27 07:48:40 amosjeffries Exp $ * * DEBUG: section 38 Network Measurement Database * AUTHOR: Duane Wessels @@ -281,7 +281,7 @@ netdbSendPing(const ipcache_addrs * ia, void *data) { struct IN_ADDR addr; - char *hostname; + char *hostname = NULL; static_cast(data)->unwrap(&hostname); netdbEntry *n; netdbEntry *na;