From 5ef0506c810e69d042f431cf0e87391503099eb6 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 17 Aug 2006 13:41:45 +0000 Subject: [PATCH] DEVEL15-windows-backconnectionhostnames-20060817 FIXES 37807 uninitialized variable reported due to dwAllocSize not being used within the initial RegQueryValueEx call. (ugh) (cherry picked from commit 16dc98ab4654f448909d59f65b2a8e3a55bc93b8) --- src/WINNT/afsd/afsd_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index 54b563f07..120530cbf 100644 --- a/src/WINNT/afsd/afsd_init.c +++ b/src/WINNT/afsd/afsd_init.c @@ -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); -- 2.39.5