From: florian Date: Tue, 5 Sep 2023 15:44:39 +0000 (+0000) Subject: Fix built. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6ced2d15634ee298e9573e91f14fa9f7de16acb6;p=openbsd Fix built. The api changed to handle cookies and extended error codes. Passing in NULL for config_file disables cookie handling so we do not need to pass a valid comm_reply, NULL will do. --- diff --git a/sbin/unwind/frontend.c b/sbin/unwind/frontend.c index 3bc7b485cd3..ff59a38b2ac 100644 --- a/sbin/unwind/frontend.c +++ b/sbin/unwind/frontend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frontend.c,v 1.78 2023/04/30 23:46:52 jsg Exp $ */ +/* $OpenBSD: frontend.c,v 1.79 2023/09/05 15:44:39 florian Exp $ */ /* * Copyright (c) 2018 Florian Obser @@ -773,7 +773,7 @@ handle_query(struct pending_query *pq) } rcode = parse_edns_from_query_pkt(pq->qbuf, &pq->edns, NULL, NULL, - pq->region); + NULL, 0, pq->region); if (rcode != LDNS_RCODE_NOERROR) { error_answer(pq, rcode); goto send_answer; @@ -927,7 +927,7 @@ synthesize_dns64_answer(struct pending_query *pq) rinfo->qdcount, rinfo->ttl, rinfo->prefetch_ttl, rinfo->serve_expired_ttl, rinfo->an_numrrsets, rinfo->ns_numrrsets, rinfo->ar_numrrsets, rinfo->rrset_count, - rinfo->security); + rinfo->security, rinfo->reason_bogus); if (!synth_rinfo) goto srvfail; @@ -1059,7 +1059,7 @@ resend_dns64_query(struct pending_query *opq) } rcode = parse_edns_from_query_pkt(pq->qbuf, &pq->edns, NULL, NULL, - pq->region); + NULL, 0, pq->region); if (rcode != LDNS_RCODE_NOERROR) { error_answer(pq, rcode); goto send_answer;