aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2013-10-18 19:23:06 +0800
committerAndy Green <andy.green@linaro.org>2013-10-18 19:23:06 +0800
commit0c0bf4a9853cdef23c210010d2ede2292d984907 (patch)
treed18a4e103f40f63e5981427fc012870014d60706 /lib
parent1f4267bda8de9fd567b1fc67c5416eb4eb803ee8 (diff)
downloadlibwebsockets-0c0bf4a9853cdef23c210010d2ede2292d984907.tar.gz
fix clean return path user code handle
Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/output.c b/lib/output.c
index d1bd9394..23565af0 100644
--- a/lib/output.c
+++ b/lib/output.c
@@ -182,7 +182,7 @@ handle_truncated_send:
}
if (n < len) {
- if (wsi->u.ws.clean_buffer) {
+ if (wsi->u.ws.clean_buffer)
/*
* This buffer unaffected by extension rewriting.
* It means the user code is expected to deal with
@@ -190,7 +190,7 @@ handle_truncated_send:
* sent, so on next send will just resume sending
* payload)
*/
- }
+ return n;
/*
* Newly truncated send. Buffer the remainder (it will get