From: Jo-Philipp Wich Date: Tue, 2 Aug 2022 11:40:28 +0000 (+0200) Subject: ucode: ignore exit exceptions X-Git-Url: http://git.openwrt.org/source?a=commitdiff_plain;h=145a309c54b7a9ff46fc588783f58804c23b09ab;p=project%2Fuhttpd.git ucode: ignore exit exceptions A request handler might legitimately call `exit()`, don't raise a server error in this case. Signed-off-by: Jo-Philipp Wich --- diff --git a/ucode.c b/ucode.c index e76f441..c03b6f0 100644 --- a/ucode.c +++ b/ucode.c @@ -199,8 +199,8 @@ uh_ucode_exception(uc_vm_t *vm, uc_exception_t *ex) return; printf("Status: 500 Internal Server Error\r\n\r\n" - "Exception while executing ucode program %s:\n", - current_prefix->handler); + "Exception while executing ucode program %s:\n", + current_prefix->handler); switch (ex->type) { case EXCEPTION_SYNTAX: printf("Syntax error"); break;