Skip to content
Permalink
Browse files
Fixing segfault when coverage rendering failed.
  • Loading branch information
constantinius committed Dec 18, 2013
1 parent 8a41daf commit c39c276cdf25c9c95d5e8ca55abb205165b4eae0
Showing 1 changed file with 4 additions and 1 deletion.
@@ -2427,7 +2427,10 @@ int msWCSException20(mapObj *map, const char *exceptionCode,

xmlDocSetRootElement(psDoc, psRootNode);

if(EQUAL(exceptionCode, "OperationNotSupported")
if (exceptionCode == NULL) {
/* Do nothing */
}
else if(EQUAL(exceptionCode, "OperationNotSupported")
|| EQUAL(exceptionCode, "OptionNotSupported")) {
status = "501 Not Implemented";
}

0 comments on commit c39c276

Please sign in to comment.