Skip to content

Commit

Permalink
Fixing segfault when coverage rendering failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinius committed Dec 18, 2013
1 parent 8a41daf commit c39c276
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mapwcs20.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit c39c276

Please sign in to comment.