diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-25 08:41:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-25 08:41:27 +0100 |
commit | 29820f8a7bd23a446a5dee829d812295c254a487 (patch) | |
tree | 6afb87c17f7382caa360c995d95bae2e148ca473 /src/lua | |
parent | d0a8583ef8638704aea83cdaa0bcdcce3656631b (diff) | |
download | rspamd-29820f8a7bd23a446a5dee829d812295c254a487.tar.gz rspamd-29820f8a7bd23a446a5dee829d812295c254a487.zip |
[Minor] Use rspamd_socketpair everywhere
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_fann.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_fann.c b/src/lua/lua_fann.c index b74174fb7..4f00dba28 100644 --- a/src/lua/lua_fann.c +++ b/src/lua/lua_fann.c @@ -708,7 +708,7 @@ lua_fann_train_threaded (lua_State *L) lua_pushvalue (L, 4); cbdata->cbref = luaL_ref (L, LUA_REGISTRYINDEX); - if (rspamd_socketpair (cbdata->pair) == -1) { + if (rspamd_socketpair (cbdata->pair, 0) == -1) { msg_err ("cannot open socketpair: %s", strerror (errno)); cbdata->pair[0] = -1; cbdata->pair[1] = -1; |