]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4292: negotiate_wrapper: Unreleased Resources
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 11 Sep 2015 02:16:06 +0000 (19:16 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 11 Sep 2015 02:16:06 +0000 (19:16 -0700)
commitaf845cee67e3dc2a58f93a9ac7d9ce091ea4fa00
tree1b61b7485b5b3260e62d1d8e8d42a0b0c0ca1a07
parentc14fb37898dbb834833413e059f90e72fc8b502c
Bug 4292: negotiate_wrapper: Unreleased Resources

FILE* handles need to be closed on exit. Shuffle the processing loop logics
to a static function to avoid code duplication from all the requires close
points.

Also, use the available global flag debug_enabled instead of local variable
to avoid having to pass it down explicitly.
helpers/negotiate_auth/wrapper/negotiate_wrapper.cc