From 0c0bf4a9853cdef23c210010d2ede2292d984907 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 18 Oct 2013 19:23:06 +0800 Subject: [PATCH] fix clean return path user code handle Signed-off-by: Andy Green --- lib/output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/output.c b/lib/output.c index d1bd939..23565af 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 -- 2.7.4