]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-backconnectionhostnames-fix-20060809
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 10 Aug 2006 00:29:23 +0000 (00:29 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 10 Aug 2006 00:29:23 +0000 (00:29 +0000)
commitedebbc248515a4d3c205cb945f411292f189d6ec
tree0859f05fb8208e2e04e9f7e3552df36c7bc47045
parent27458dd5a4c489aa8fa1b03db5e2a7b3794a94ec
DEVEL15-windows-backconnectionhostnames-fix-20060809

The previous code failed to specify the correct size of the REG_MULTI_SZ
being written to the registry when appending an additional name to the
list of Back Connection Host names.  This would cause the written string
to contain

   FOO\0B

instead of

   FOO\0\BAR\0\0

this caused problems for Windows 2000 lsass.exe which failed to properly
allocate the buffer for RegQueryValueEx and failed to check that it did
not read beyond the buffer.   If the list was not terminated with two
nuls an exception would be thrown that could result in a lock being
orphaned on the NTLMNameTable.  This would in turn prevent authentications
to UNC resources from completing.  As a result, the startup of
afsd_service.exe would fail if a GlobalAutoMapper drive was configured.

The work around is to set the correct value in the registry before
switching machine names or installing/removing the Microsoft Loopback
Adapter.

(cherry picked from commit cca848edb12abea4deb8f676b07182575d61186d)
src/WINNT/afsd/afsd_init.c