Fix built.
authorflorian <florian@openbsd.org>
Tue, 5 Sep 2023 15:44:39 +0000 (15:44 +0000)
committerflorian <florian@openbsd.org>
Tue, 5 Sep 2023 15:44:39 +0000 (15:44 +0000)
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.

sbin/unwind/frontend.c

index 3bc7b48..ff59a38 100644 (file)
@@ -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 <florian@openbsd.org>
@@ -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;