[mapserver-commits] r13022 - trunk/mapserver/mapcache/lib

svn at osgeo.org svn at osgeo.org
Wed Feb 1 05:22:14 EST 2012


Author: tbonfort
Date: 2012-02-01 02:22:14 -0800 (Wed, 01 Feb 2012)
New Revision: 13022

Modified:
   trunk/mapserver/mapcache/lib/service_wms.c
Log:
fix segfault on wms requests with no VERSION parameter


Modified: trunk/mapserver/mapcache/lib/service_wms.c
===================================================================
--- trunk/mapserver/mapcache/lib/service_wms.c	2012-01-31 17:49:09 UTC (rev 13021)
+++ trunk/mapserver/mapcache/lib/service_wms.c	2012-02-01 10:22:14 UTC (rev 13022)
@@ -357,7 +357,7 @@
    if( ! strcasecmp(str,"getmap")) {
       isGetMap = 1;
       str = apr_table_get(params,"VERSION");
-      if(!strcmp(str,"1.3.0")) {
+      if(str && !strcmp(str,"1.3.0")) {
          iswms130 = 1;
       }
    } else {



More information about the mapserver-commits mailing list