uloop: clear uloop_fd::error on add
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
131b3352d9
commit
73a88451dd
1 changed files with 1 additions and 0 deletions
1
uloop.c
1
uloop.c
|
@ -385,6 +385,7 @@ int uloop_fd_add(struct uloop_fd *sock, unsigned int flags)
|
||||||
|
|
||||||
sock->registered = true;
|
sock->registered = true;
|
||||||
sock->eof = false;
|
sock->eof = false;
|
||||||
|
sock->error = false;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue