aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_fann.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_fann.c')
-rw-r--r--src/lua/lua_fann.c2
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;