Skip to content

Commit

Permalink
Merge pull request #186 from giavac/master
Browse files Browse the repository at this point in the history
Fix check of poll result in sresolv
  • Loading branch information
andywolk committed Dec 13, 2022
2 parents 2a6190f + 9eb159e commit b0c314f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsofia-sip-ua/sresolv/sres_blocking.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
#elif HAVE_SELECT
Expand Down

0 comments on commit b0c314f

Please sign in to comment.