1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

NO_EXTENSIONS fixes

Trac #52

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
mroszko 2013-12-10 21:15:00 +08:00 committed by Andy Green
parent 2764eba89f
commit 793e7c07d8

View file

@ -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?