From: Vsevolod Stakhov Date: Thu, 29 Dec 2016 15:54:07 +0000 (+0000) Subject: [Minor] Call read callback when no stop_pattern is specified X-Git-Tag: 1.5.0~462 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=223475efa083a9009ef1f2815c57809a75e1b190;p=thirdparty%2Frspamd.git [Minor] Call read callback when no stop_pattern is specified --- diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c index b3276b709b..322f5e773c 100644 --- a/src/lua/lua_tcp.c +++ b/src/lua/lua_tcp.c @@ -461,6 +461,12 @@ lua_tcp_process_read_handler (struct lua_tcp_cbdata *cbd, } } } + else { + lua_tcp_push_data (cbd, cbd->in->data, cbd->in->len); + lua_tcp_shift_handler (cbd); + + return TRUE; + } return FALSE; }