nonzero return from client parser is close
authorAndy Green <andy.green@linaro.org>
Mon, 17 Mar 2014 10:40:08 +0000 (18:40 +0800)
committerAndy Green <andy.green@linaro.org>
Mon, 17 Mar 2014 10:40:08 +0000 (18:40 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/handshake.c

index 7611a6a..0007066 100644 (file)
@@ -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;
                                }