aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormroszko <mroszko@invalid.com>2013-12-10 21:15:00 +0800
committerAndy Green <andy.green@linaro.org>2013-12-10 21:15:00 +0800
commit793e7c07d82f118608882b94b554223d4ca23ada (patch)
treed59f556706f76944278bf95db0b46ccce32d1bc6 /lib
parent2764eba89f27b2c83ce3fb89a44db14752e8ae65 (diff)
downloadlibwebsockets-793e7c07d82f118608882b94b554223d4ca23ada.tar.gz
NO_EXTENSIONS fixes
Trac #52 Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/output.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/output.c b/lib/output.c
index c1074011..c8e85a56 100644
--- a/lib/output.c
+++ b/lib/output.c
@@ -98,9 +98,10 @@ int lws_issue_raw(struct libwebsocket *wsi, unsigned char *buf, size_t len)
{
struct libwebsocket_context *context = wsi->protocol->owning_server;
int n;
+ size_t real_len = len;
+
#ifndef LWS_NO_EXTENSIONS
int m;
- size_t real_len = len;
if (wsi->truncated_send_malloc &&
(buf < wsi->truncated_send_malloc ||
@@ -182,9 +183,7 @@ int lws_issue_raw(struct libwebsocket *wsi, unsigned char *buf, size_t len)
}
#endif
-#ifndef LWS_NO_EXTENSIONS
handle_truncated_send:
-#endif
/*
* already handling a truncated send?