From 9ed074e58db4134318e2a05245733fa672d4a383 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Tue, 3 Feb 2015 11:36:08 +0100 Subject: [PATCH] set max_udp_payload_size 2 response size --- src/stub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stub.c b/src/stub.c index 1aef7b7b..445d3d86 100644 --- a/src/stub.c +++ b/src/stub.c @@ -229,7 +229,9 @@ stub_udp_read_cb(void *userarg) return; } - ldns_wire2pkt(&(netreq->result), netreq->response, (size_t)read); + netreq->max_udp_payload_size = read; + ldns_wire2pkt(&(netreq->result), netreq->response, + netreq->max_udp_payload_size); dnsreq->upstreams->current = 0; /* TODO: DNSSEC */