From 0faba839a802cb89e28ff1741612864acd20e41e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D1=83=D0=B6=D0=B5=D1=86=D0=BA=D0=B8=D0=B9?= Date: Thu, 25 Sep 2014 12:09:44 +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 0d1280349..802a04055 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;