Signed-off-by: Andy Green <andy.green@linaro.org>
#ifndef LWS_NO_EXTENSIONS
int m;
+#endif
+
+ if (!len)
+ return 0;
if (wsi->truncated_send_len && (buf < wsi->truncated_send_malloc ||
buf > (wsi->truncated_send_malloc +
assert(0);
}
+#ifndef LWS_NO_EXTENSIONS
/*
* one of the extensions is carrying our data itself? Like mux?
*/
*/
n = lws_issue_raw_ext_access(wsi, buf - pre, len + pre + post);
- if (n < 0)
+ if (n <= 0)
return n;
if (n == len + pre + post) {