From: Adam Dickmeiss Date: Tue, 11 Dec 2012 13:13:23 +0000 (+0100) Subject: Harden exit command X-Git-Tag: v1.6.24~12 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=6fa17ff9fdb750b27aac212c101fd7727bd05ced;p=pazpar2-moved-to-github.git Harden exit command May only be executed in debug mode (-X option). --- diff --git a/src/http_command.c b/src/http_command.c index 9fc50a8..65be27c 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -405,7 +405,8 @@ static void cmd_exit(struct http_channel *c) response_open(c, "exit"); response_close(c, "exit"); - http_close_server(c->server); + if (global_parameters.debug_mode) + http_close_server(c->server); } static void cmd_init(struct http_channel *c)