[25759] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

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

daemon@ATHENA.MIT.EDU (hartmans@mit.edu)
Wed Sep 28 16:54:51 2011

Date: Wed, 28 Sep 2011 16:54:49 -0400
From: hartmans@mit.edu
Message-Id: <201109282054.p8SKsn0Z016981@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

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@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';

_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post