aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-07 20:58:51 +0200
committerKim Alvefur <zash@zash.se>2018-10-07 20:58:51 +0200
commit34be9eaebf2ff39e644a13ece3324f6f84275788 (patch)
tree4e3c075038752b8e59fd216b24b65b0317ae7793 /util-src
parente70b1af98af0c5d82049463616f5db750a1ab3a8 (diff)
downloadprosody-34be9eaebf2ff39e644a13ece3324f6f84275788.tar.gz
prosody-34be9eaebf2ff39e644a13ece3324f6f84275788.zip
util.poll: Zero FD sets watched for errors on creation
Diffstat (limited to 'util-src')
-rw-r--r--util-src/poll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util-src/poll.c b/util-src/poll.c
index 47a994c1..11e3fecf 100644
--- a/util-src/poll.c
+++ b/util-src/poll.c
@@ -389,6 +389,8 @@ int Lnew(lua_State *L) {
FD_ZERO(&state->wantwrite);
FD_ZERO(&state->readable);
FD_ZERO(&state->writable);
+ FD_ZERO(&state->all);
+ FD_ZERO(&state->err);
state->processed = FD_SETSIZE;
#endif