svn rev #25250: trunk/src/windows/leashdll/

hartmans@MIT.EDU hartmans at MIT.EDU
Wed Sep 28 16:54:49 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25250
Commit By: hartmans
Log Message:
leashw32: get_profile_file

if krb5_get_default_config_files() returns success and
an empty list, then get_profile_file() will attempt
to dereference a null pointer.  check for the empty
list and treat it as failure.

Patch by Jeffrey Altman.

From: Alexey Melnikov <alexey.melnikov at isode.com>


Changed Files:
U   trunk/src/windows/leashdll/lshfunc.c
Modified: trunk/src/windows/leashdll/lshfunc.c
===================================================================
--- trunk/src/windows/leashdll/lshfunc.c	2011-09-28 20:54:45 UTC (rev 25249)
+++ trunk/src/windows/leashdll/lshfunc.c	2011-09-28 20:54:49 UTC (rev 25250)
@@ -1553,7 +1553,7 @@
 {
     char **configFile = NULL;
     if (hKrb5) {
-        if (pkrb5_get_default_config_files(&configFile))
+        if (pkrb5_get_default_config_files(&configFile) || !configFile[0])
         {
             GetWindowsDirectory(confname,szConfname);
             confname[szConfname-1] = '\0';




More information about the cvs-krb5 mailing list