From: Marc Schink Date: Fri, 29 Jan 2016 22:35:40 +0000 (+0100) Subject: server/telnet: Remove exit() call X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3421b89c9809cbb39cd4bb030687a5c9fd65ded6;p=openocd server/telnet: Remove exit() call Change-Id: I8ce99d7d62dfe3cad63cf6bc68f2faf2234e395c Signed-off-by: Marc Schink Reviewed-on: http://openocd.zylin.com/3224 Tested-by: jenkins Reviewed-by: Tomas Vanek Reviewed-by: Freddie Chopin --- diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index e5eb4bb2..e33188b5 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -573,7 +573,7 @@ static int telnet_input(struct connection *connection) break; default: LOG_ERROR("unknown telnet state"); - exit(-1); + return ERROR_FAIL; } bytes_read--;