uloop: clear uloop_fd::error on add
authorFelix Fietkau <nbd@openwrt.org>
Sat, 26 Apr 2014 14:55:17 +0000 (16:55 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 26 Apr 2014 14:55:17 +0000 (16:55 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uloop.c

diff --git a/uloop.c b/uloop.c
index d293edb856ea311999d2f8f9157af186cacaa9e0..ee568a8cb7f7b7ed4042f10db8fc66c68267d898 100644 (file)
--- a/uloop.c
+++ b/uloop.c
@@ -385,6 +385,7 @@ int uloop_fd_add(struct uloop_fd *sock, unsigned int flags)
 
        sock->registered = true;
        sock->eof = false;
+       sock->error = false;
 
 out:
        return ret;