]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix error-testing condition in log_file_daemon.cc (CID 1256161)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 12 Jul 2015 18:01:57 +0000 (20:01 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 12 Jul 2015 18:01:57 +0000 (20:01 +0200)
commit4a307b25255efe16486091bf5c030f83d6175348
treebfdf188bed7db4cda3a5854d95360676772f4483
parent6562e94a21343be36e50449e398668ff106e3369
Fix error-testing condition in log_file_daemon.cc (CID 1256161)

An error condition check would assume that ferror(3) returns negative values if error bit is set.
According to documentation, the only guarantee is that it returns nonzero in case of error.
helpers/log_daemon/file/log_file_daemon.cc