Alto Networks, for the report.
- Fix locking in libunbound ub_ctx_set_event call.
Thanks to Qifan Zhang, Palo Alto Networks, for the report.
+ - Fix that libunbound pipe functions fail with error after
+ an event base is set. Thanks to Qifan Zhang, Palo Alto
+ Networks, for the report.
15 June 2026: Wouter
- Fix to add `max-transfer-size` and `max-transfer-time` that
int
ub_poll(struct ub_ctx* ctx)
{
+ if(!ctx || ctx->event_base)
+ return UB_INITFAIL;
/* no need to hold lock while testing for readability. */
return tube_poll(ctx->rr_pipe);
}
int
ub_fd(struct ub_ctx* ctx)
{
+ if(!ctx || ctx->event_base)
+ return -1;
return tube_read_fd(ctx->rr_pipe);
}
int r;
uint8_t* msg;
uint32_t len;
+ if(!ctx || ctx->event_base)
+ return UB_INITFAIL;
while(1) {
msg = NULL;
lock_basic_lock(&ctx->rrpipe_lock);
int r;
uint8_t* msg;
uint32_t len;
+ if(!ctx || ctx->event_base)
+ return UB_INITFAIL;
/* this is basically the same loop as _process(), but with changes.
* holds the rrpipe lock and waits with tube_wait */
while(1) {
struct ctx_query* q;
uint8_t* msg = NULL;
uint32_t len = 0;
+ if(!ctx || ctx->event_base)
+ return UB_INITFAIL;
if(async_id)
*async_id = 0;