From ecd53ad507274a59ff2b63a3173508ffe5773bdc Mon Sep 17 00:00:00 2001 From: deep125 Date: Thu, 25 Sep 2014 21:39:37 +0400 Subject: [PATCH] Removed looping in function libwebsocket_context_destroy. --- lib/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/output.c b/lib/output.c index cd8da351e..883753df2 100644 --- a/lib/output.c +++ b/lib/output.c @@ -132,7 +132,8 @@ int lws_issue_raw(struct libwebsocket *wsi, unsigned char *buf, size_t len) switch (n) { case LWS_SSL_CAPABLE_ERROR: - return -1; + n=(int)len; + break; case LWS_SSL_CAPABLE_MORE_SERVICE: /* nothing got sent, not fatal, retry the whole thing later */ n = 0;