From 564056d27cf2bff345b04b7340ad163e5b77345f Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 17 Mar 2014 18:40:08 +0800 Subject: [PATCH] nonzero return from client parser is close Signed-off-by: Andy Green --- lib/handshake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/handshake.c b/lib/handshake.c index 7611a6a..0007066 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -416,7 +416,7 @@ cleanup: case LWS_CONNMODE_WS_CLIENT: for (n = 0; n < len; n++) if (libwebsocket_client_rx_sm( - wsi, *buf++) < 0) { + wsi, *buf++)) { lwsl_debug("client rx has bailed\n"); goto bail; } -- 2.7.4