]> git.ipfire.org Git - thirdparty/squid.git/commit - src/comm/TcpAcceptor.cc
Polish: better libcomm initialization and error detection
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 May 2013 01:19:46 +0000 (19:19 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 May 2013 01:19:46 +0000 (19:19 -0600)
commite42281f9a9e30718b1d1cdb1b232f7dd2ec1491d
treedce8bdc75ac38309e4453e027a8c375480b88260
parent3b3593288c67958ce26475a95a5151b07241f338
Polish: better libcomm initialization and error detection

Initialize nfmark value on Comm::Connections to zero. Memory is init by
MemPools functionality earlier, but not necessarily now.

Check for and produce error when getsockname() call fails to identify
a local IP address on inbound connections.

 Detected by Coverity Scan. Issues 740543, 740320
src/comm/Connection.cc
src/comm/TcpAcceptor.cc