Skip to content
Permalink
Browse files
[server] Fix potential crash caused by referencing out of scope local
  • Loading branch information
nyalldawson committed Mar 26, 2017
1 parent 68437a1 commit 721131e661a1116a7f6e7860fbdda4b8a86ca17a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/services/wms/qgswmsgetcapabilities.cpp
@@ -42,12 +42,12 @@ namespace QgsWms
cache = accessControl->fillCacheKey( cacheKeyList );
#endif

QDomDocument doc;
QString cacheKey = cacheKeyList.join( QStringLiteral( "-" ) );
const QDomDocument *capabilitiesDocument = capabilitiesCache->searchCapabilitiesDocument( configFilePath, cacheKey );
if ( !capabilitiesDocument ) //capabilities xml not in cache. Create a new one
{
QgsMessageLog::logMessage( QStringLiteral( "Capabilities document not found in cache" ) );
QDomDocument doc;

doc = getCapabilities( serverIface, project, version, request, projectSettings );

0 comments on commit 721131e

Please sign in to comment.