]> git.ipfire.org Git - thirdparty/squid.git/commit
Windows port: Fix improper access permissions to registry and DNS parsing from registry
authorGuido Serassio <serassio@squid-cache.org>
Mon, 18 May 2009 19:52:40 +0000 (21:52 +0200)
committerGuido Serassio <serassio@squid-cache.org>
Mon, 18 May 2009 19:52:40 +0000 (21:52 +0200)
commit0dde216076987b4d7ccdd5df88602125f46e14a9
treefa94c7b63abc2cc4e8e26a85877305ea760eea35
parent445d18a460422224933c2d3b964dce27270bb402
Windows port: Fix improper access permissions to registry and DNS parsing from registry

- RegOpenKey() always try to open registry keys in full control mode, even if not needed.
  This could make Squid to fail when running as a non privileged user. RegOpenKeyEx() allow to
  specify only the needed priviledge and now is used instead.

- When parsing DNS setting into registry, a fixed size loop was used. Now the loop count is
  dynamic.
src/WinSvc.cc
src/dns_internal.cc