svn rev #25272: trunk/src/lib/gssapi/mechglue/

hartmans@MIT.EDU hartmans at MIT.EDU
Wed Sep 28 16:57:15 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25272
Commit By: hartmans
Log Message:
Windows fixes: remove unreferenced; use sizeof to compute array size.

Signed-off-by: Kevin Wasserman <kevin.wasserman at painless-security.com>


Changed Files:
U   trunk/src/lib/gssapi/mechglue/g_initialize.c
Modified: trunk/src/lib/gssapi/mechglue/g_initialize.c
===================================================================
--- trunk/src/lib/gssapi/mechglue/g_initialize.c	2011-09-28 20:56:42 UTC (rev 25271)
+++ trunk/src/lib/gssapi/mechglue/g_initialize.c	2011-09-28 20:57:15 UTC (rev 25272)
@@ -1203,7 +1203,7 @@
 		return 0;
 	}
 	do {
-		int subKeyNameSize=256;
+		int subKeyNameSize=sizeof(subKeyName)/sizeof(subKeyName[0]);
 		if ((rc = RegEnumKeyEx(hConfigKey, iSubKey++, subKeyName,
 				       &subKeyNameSize, NULL, NULL, NULL,
 				       &keyLastWriteTime)) != ERROR_SUCCESS) {
@@ -1253,7 +1253,6 @@
 {
 	HKEY hConfigKey;
 	DWORD iSubKey, nSubKeys, maxSubKeyNameLen;
-	DWORD dataBufferSize, dataSizeRequired;
 	char *oidStr = NULL, *oid = NULL, *sharedLib = NULL, *kernMod = NULL;
 	char *modOptions = NULL;
 	DWORD oidStrLen = 0, oidLen = 0, sharedLibLen = 0, kernModLen = 0;




More information about the cvs-krb5 mailing list