From: Francesco Chemolli Date: Sat, 27 Jun 2015 17:13:26 +0000 (+0200) Subject: Initialize TunnelStateData::started in ctor (Coverity defect 1222663) X-Git-Tag: merge-candidate-3-v1~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15c9c82c32f38f23ea6a36371a4c2dbef57e5f5f;p=thirdparty%2Fsquid.git Initialize TunnelStateData::started in ctor (Coverity defect 1222663) --- diff --git a/src/tunnel.cc b/src/tunnel.cc index 349e824a3f..46827c7c72 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -271,7 +271,8 @@ TunnelStateData::TunnelStateData() : status_ptr(NULL), logTag_ptr(NULL), connectRespBuf(NULL), - connectReqWriting(false) + connectReqWriting(false), + started(squid_curtime) { debugs(26, 3, "TunnelStateData constructed this=" << this); client.readPendingFunc = &tunnelDelayedClientRead; @@ -1006,7 +1007,7 @@ tunnelStart(ClientHttpRequest * http, int64_t * size_ptr, int *status_ptr, const tunnelState->client.conn = http->getConn()->clientConnection; tunnelState->http = http; tunnelState->al = al; - tunnelState->started = squid_curtime; + //tunnelState->started is set in TunnelStateData ctor comm_add_close_handler(tunnelState->client.conn->fd, tunnelClientClosed,