aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-07 18:41:44 +0200
committerKim Alvefur <zash@zash.se>2018-10-07 18:41:44 +0200
commitb39130c595085797ba07abe5a3d016dacd5e0b09 (patch)
tree399c6aec3579c24da6324ceef7c22f32141f258d /util-src
parentc81f221767c6b7a8a65259f56cc5cf49ab70744e (diff)
downloadprosody-b39130c595085797ba07abe5a3d016dacd5e0b09.tar.gz
prosody-b39130c595085797ba07abe5a3d016dacd5e0b09.zip
util.poll: Fix missing return for adding duplicate FD
Diffstat (limited to 'util-src')
-rw-r--r--util-src/poll.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util-src/poll.c b/util-src/poll.c
index e9a1e427..71d5c3a2 100644
--- a/util-src/poll.c
+++ b/util-src/poll.c
@@ -92,6 +92,7 @@ int Ladd(lua_State *L) {
lua_pushnil(L);
lua_pushstring(L, strerror(EEXIST));
lua_pushinteger(L, EEXIST);
+ return 3;
}
FD_CLR(fd, &state->readable);