bugfix: Include OPT when max payload is dynamic

This commit is contained in:
Willem Toorop 2015-02-12 11:59:44 +01:00
parent 37def257ee
commit c649c675e2
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&