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
commit31c8b1aca33712183abfd3c0ca72759ce1d9cda9 (patch)
tree399c6aec3579c24da6324ceef7c22f32141f258d /util-src
parent6b592b4beeacba785621223c4434179aebf3a30b (diff)
downloadprosody-31c8b1aca33712183abfd3c0ca72759ce1d9cda9.tar.gz
prosody-31c8b1aca33712183abfd3c0ca72759ce1d9cda9.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);