set max_udp_payload_size 2 response size

This commit is contained in:
Willem Toorop 2015-02-03 11:36:08 +01:00
parent b5a6fa8064
commit 9ed074e58d
1 changed files with 3 additions and 1 deletions

View File

@ -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 */