diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-29 15:54:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-29 18:58:16 +0000 |
commit | 223475efa083a9009ef1f2815c57809a75e1b190 (patch) | |
tree | 2780c3998d7c24aa9d3a206e2f01395b47dddfc0 /src/lua/lua_tcp.c | |
parent | 6c28de22d121ad73faca2e8cc15f049c510dd068 (diff) | |
download | rspamd-223475efa083a9009ef1f2815c57809a75e1b190.tar.gz rspamd-223475efa083a9009ef1f2815c57809a75e1b190.zip |
[Minor] Call read callback when no stop_pattern is specified
Diffstat (limited to 'src/lua/lua_tcp.c')
-rw-r--r-- | src/lua/lua_tcp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c index b3276b709..322f5e773 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; } |