From ad078faaafb0431fb5d6cfabcd8a51c4ac6f7b19 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 25 May 2018 21:44:59 +0800 Subject: [PATCH] client: fix SOCKS5 compilation https://github.com/warmcat/libwebsockets/issues/1292 --- lib/roles/http/client/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/roles/http/client/client.c b/lib/roles/http/client/client.c index ce42dc6c..65269343 100644 --- a/lib/roles/http/client/client.c +++ b/lib/roles/http/client/client.c @@ -93,7 +93,7 @@ lws_client_socket_service(struct lws *wsi, struct lws_pollfd *pollfd, char *sb = p; int n = 0; #if defined(LWS_WITH_SOCKS5) - char conn_mode = 0, pending_timeout = 0; + int conn_mode = 0, pending_timeout = 0; #endif if ((pollfd->revents & LWS_POLLOUT) && @@ -252,6 +252,8 @@ socks_reply_fail: /* clear his proxy connection timeout */ lws_set_timeout(wsi, NO_PENDING_TIMEOUT, 0); goto start_ws_handshake; + default: + break; } break; #endif