diff options
author | David Timber <mieabby@gmail.com> | 2020-09-08 19:46:44 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-09-08 20:10:57 +0930 |
commit | 0e512e6ae3146fcf3ce2427c8c36937d708d149b (patch) | |
tree | 40a6ad8c64b419e2f8d0bcc289e9608852ff76ae /src/resolv.c | |
parent | 550d2eec27a42254b26139208765022fffe7c775 (diff) |
* Fix bug in pth_poll: wrong use of FD_SET()
causing undefined behaviour
* Fix bug in proone: loading ns pool from dvault for resolv
* Fix bug in htbt: improper handling of stream in htbt_relay_child()
* Switch back to _POSIX_C_SOURCE=200112L
Diffstat (limited to 'src/resolv.c')
-rw-r--r-- | src/resolv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolv.c b/src/resolv.c index 1fb04fa..30fbac6 100644 --- a/src/resolv.c +++ b/src/resolv.c @@ -426,7 +426,7 @@ static bool resolv_ensure_act_dns_fd (prne_resolv_t *ctx) { while (pfs[0].fd >= 0 || pfs[1].fd >= 0) { pth_status_t st; - pollret = pth_poll_ev(pfs, 2, -1, ev); + pollret = prne_pth_poll(pfs, 2, -1, ev); st = pth_event_status(ev); if (st == PTH_STATUS_OCCURRED) { @@ -1077,7 +1077,7 @@ LOOP: ctx->act_sck_pfd.events = pfd_events; prne_assert(ev != NULL); // fatal without timeout - pollret = pth_poll_ev(&ctx->act_sck_pfd, 1, -1, ev); + pollret = prne_pth_poll(&ctx->act_sck_pfd, 1, -1, ev); if (pth_event_status(ev) != PTH_STATUS_PENDING) { resolv_close_sck(ctx, NULL, true); |