]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix incorrect use of errno in various libcomm.la places
authorAlex Dowad <alexinbeijing@gmail.com>
Thu, 14 May 2015 10:24:29 +0000 (03:24 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 14 May 2015 10:24:29 +0000 (03:24 -0700)
commit5dc67d5887e697d2b35b24c4e715140513e94d93
treec11dc842cd481db28af53b83604fc06da27bbd39
parent13251f8d73082c8fcd4fae4dbe840a09de471418
Fix incorrect use of errno in various libcomm.la places

Fix problems with 'errno' in TcpAcceptor::Listen, Comm::HandleRead, and
Comm::HandleWrite. 'errno' is only valid after a standard library function
returns an error. Also, we must avoid calling out to other functions before
recording the value of 'errno', since they might overwrite it.
src/comm/Read.cc
src/comm/TcpAcceptor.cc
src/comm/Write.cc