From c649c675e2c72a866f61388299619222b931dfe8 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 12 Feb 2015 11:59:44 +0100 Subject: [PATCH] bugfix: Include OPT when max payload is dynamic --- src/request-internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request-internal.c b/src/request-internal.c index 4f34ab3e..32fdfec9 100644 --- a/src/request-internal.c +++ b/src/request-internal.c @@ -281,7 +281,7 @@ dns_req_new(getdns_context *context, getdns_eventloop *loop, add_opt_parameters, "options", &options) == GETDNS_RETURN_GOOD) (void) getdns_list_get_length(options, &noptions); - with_opt = edns_do_bit != 0 || edns_maximum_udp_payload_size != -1 || + with_opt = edns_do_bit != 0 || edns_maximum_udp_payload_size != 512 || edns_extended_rcode != 0 || edns_version != 0 || noptions; edns_maximum_udp_payload_size = with_opt &&