From 35c58cc5988df8ae2432776e2b74a6f9632e277f Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Mon, 27 Oct 2014 19:26:15 +0100 Subject: [PATCH] set payload size < 512 to 512 with extensions too --- src/stub.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stub.c b/src/stub.c index 2710fba4..24992c20 100755 --- a/src/stub.c +++ b/src/stub.c @@ -111,6 +111,8 @@ getdns_make_query_pkt_buf(const getdns_network_req *netreq, uint8_t *buf, "version", &edns_version); (void) getdns_dict_get_int(add_opt_parameters, "do_bit", &edns_do_bit); + if (edns_maximum_udp_payload_size < 512) + edns_maximum_udp_payload_size = 512; } } if (have_add_opt_parameters && getdns_dict_get_list(