]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixes from merge
authorWillem Toorop <willem@nlnetlabs.nl>
Sun, 24 Jan 2021 22:59:02 +0000 (23:59 +0100)
committerWillem Toorop <willem@nlnetlabs.nl>
Sun, 24 Jan 2021 22:59:02 +0000 (23:59 +0100)
util/data/msgencode.c
util/edns.h

index c2decfc7b872e9ed4d48559bea1b4d98281415d1..2c2ccc1a2d97b572c57ef97285f1eb58a63b214c 100644 (file)
@@ -984,6 +984,6 @@ error_encode(sldns_buffer* buf, int r, struct query_info* qinfo,
                es.bits &= EDNS_DO;
                if(sldns_buffer_limit(buf) + edns_field_size > edns->udp_size)
                        return;
-               attach_edns_record_(buf, &es, edns->udp_size - edns_field_size);
+               attach_edns_record(buf, &es);
        }
 }
index c4d63ec29a487690b17842beb10e16365b6e0003..b94e53443bac107e474449a2ff202dd645483ee2 100644 (file)
@@ -44,6 +44,7 @@
 
 #include "util/storage/dnstree.h"
 
+struct edns_option;
 struct edns_data;
 struct config_file;
 struct comm_point;