From 0e512e6ae3146fcf3ce2427c8c36937d708d149b Mon Sep 17 00:00:00 2001 From: David Timber Date: Tue, 8 Sep 2020 19:46:44 +0930 Subject: * 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 --- src/resolv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resolv.c') 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); -- cgit