Permalink
Browse files

Fix segfault when GetFeature on a invalid typename on a multi-layer map

  • Loading branch information...
rouault committed Nov 4, 2013
1 parent 7c7fdcf commit fb393d6b41258f95ac18d7752d54adeee695baa1
Showing with 3 additions and 2 deletions.
  1. +2 −1 mapwfs.c
  2. +1 −1 msautotest
View
@@ -3178,7 +3178,8 @@ int msWFSGetFeature(mapObj *map, wfsParamsObj *paramsObj, cgiRequestObj *req,
"TYPENAME '%s' doesn't exist in this server. Please check the capabilities and reformulate your request.",
"msWFSGetFeature()", layers[k]);
msFree(pszPropertyName);
msFreeCharArray(papszPropertyName, numlayers);
if( papszPropertyName )
msFreeCharArray(papszPropertyName, numlayers);
msFreeCharArray(layers, numlayers);
return msWFSException(map, "typename", "InvalidParameterValue", paramsObj->pszVersion);
}
Submodule msautotest updated from 22c882 to 040012

0 comments on commit fb393d6

Please sign in to comment.