[mapserver-commits] r7603 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Tue May 20 15:21:07 EDT 2008
Author: Assefa
Date: 2008-05-20 15:21:07 -0400 (Tue, 20 May 2008)
New Revision: 7603
Modified:
trunk/mapserver/mapwms.c
Log:
wms setup with layers set to default might lead to memeory corruption #2622
Modified: trunk/mapserver/mapwms.c
===================================================================
--- trunk/mapserver/mapwms.c 2008-05-20 12:59:51 UTC (rev 7602)
+++ trunk/mapserver/mapwms.c 2008-05-20 19:21:07 UTC (rev 7603)
@@ -448,8 +448,11 @@
(map->name && strcasecmp(map->name, layers[k]) == 0) ||
(GET_LAYER(map, j)->group && strcasecmp(GET_LAYER(map, j)->group, layers[k]) == 0))
{
- GET_LAYER(map, j)->status = MS_ON;
- map->layerorder[nLayerOrder++] = j;
+ if (GET_LAYER(map, j)->status != MS_DEFAULT)
+ {
+ map->layerorder[nLayerOrder++] = j;
+ GET_LAYER(map, j)->status = MS_ON;
+ }
validlayers++;
layerfound = 1;
}
More information about the mapserver-commits
mailing list