Commit 448470d6 authored by Pekka Pessi's avatar Pekka Pessi

sres: fix poll error in sres_blocking.c

Thanks to <yuri AT rawbw DOT com> for catching this.
parent 2f77ee0e
......@@ -171,9 +171,9 @@ int sres_blocking_complete(sres_blocking_context_t *c)
sres_resolver_timer(c->resolver, -1);
else for (i = 0; i < c->block->n_sockets; i++) {
if (c->block->fds[i].revents | POLLERR)
if (c->block->fds[i].revents & POLLERR)
sres_resolver_error(c->resolver, c->block->fds[i].fd);
if (c->block->fds[i].revents | POLLIN)
if (c->block->fds[i].revents & POLLIN)
sres_resolver_receive(c->resolver, c->block->fds[i].fd);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment