[mapserver-commits] r11072 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Mar 4 14:57:16 EST 2011


Author: dmorissette
Date: 2011-03-04 11:57:16 -0800 (Fri, 04 Mar 2011)
New Revision: 11072

Modified:
   trunk/mapserver/mappool.c
Log:
Prevent strcasecmp() on NULL string

Modified: trunk/mapserver/mappool.c
===================================================================
--- trunk/mapserver/mappool.c	2011-03-04 13:55:38 UTC (rev 11071)
+++ trunk/mapserver/mappool.c	2011-03-04 19:57:16 UTC (rev 11072)
@@ -349,7 +349,7 @@
 
     /* check if we must always create a new connection */
     close_connection = msLayerGetProcessingKey( layer, "CLOSE_CONNECTION" );
-    if( strcasecmp(close_connection,"ALWAYS") == 0 )
+    if( close_connection && strcasecmp(close_connection,"ALWAYS") == 0 )
         return NULL;
 
     msAcquireLock( TLOCK_POOL );



More information about the mapserver-commits mailing list