]> git.sur5r.net Git - openocd/commitdiff
server/telnet: Remove exit() call
authorMarc Schink <openocd-dev@marcschink.de>
Fri, 29 Jan 2016 22:35:40 +0000 (23:35 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Tue, 25 Apr 2017 15:56:49 +0000 (16:56 +0100)
Change-Id: I8ce99d7d62dfe3cad63cf6bc68f2faf2234e395c
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/3224
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/server/telnet_server.c

index e5eb4bb2368ab64fd065a7443ac7be5547bb2148..e33188b5e1e0f73c2a9c289e17ce12555050a186 100644 (file)
@@ -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--;