act on fatal parse problems
[profile/ivi/libwebsockets.git] / lib / client.c
index c92bc49..ef17ca8 100644 (file)
@@ -288,7 +288,10 @@ int lws_client_socket_service(struct libwebsocket_context *context, struct libwe
                        if (len < 0)
                                goto bail3;
 
-                       libwebsocket_parse(wsi, c);
+                       if (libwebsocket_parse(wsi, c)) {
+                               /* problems */
+                               goto bail3;
+                       }
                }
 
                /*