]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-backconnectionhostnames-20060817
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 17 Aug 2006 13:40:16 +0000 (13:40 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 17 Aug 2006 13:40:16 +0000 (13:40 +0000)
FIXES 37807

uninitialized variable reported due to dwAllocSize not being used
within the initial RegQueryValueEx call.  (ugh)

src/WINNT/afsd/afsd_init.c

index 75fa0e74c17e625d4935414e3f857490e23d9eb1..2eed2a1f2bbdac88499470504d86c9b0505a3fed 100644 (file)
@@ -282,7 +282,7 @@ configureBackConnectionHostNames(void)
                        &hkMSV10) == ERROR_SUCCESS )
     {
         if (RegQueryValueEx( hkMSV10, "BackConnectionHostNames", 0, 
-                            &dwType, NULL, &dwSize) == ERROR_SUCCESS) {
+                            &dwType, NULL, &dwAllocSize) == ERROR_SUCCESS) {
            dwAllocSize += 1 /* in case the source string is not nul terminated */
                + strlen(cm_NetbiosName) + 2;
            pHostNames = malloc(dwAllocSize);