diff --git a/libunbound/libunbound.c b/libunbound/libunbound.c index 30f63431a..729b32e33 100644 --- a/libunbound/libunbound.c +++ b/libunbound/libunbound.c @@ -537,7 +537,7 @@ process_answer_detail(struct ub_ctx* ctx, uint8_t* msg, uint32_t len, *cb = NULL; *cbarg = NULL; } else { - *cb = q->cb; + *cb = (ub_callback_type)q->cb; *cbarg = q->cb_arg; } if(*err) {