mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 22:57:08 +00:00
- Fix #836: unbound could echo back EDNS options in an error response.
git-svn-id: file:///svn/unbound/trunk@3870 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
2127c65561
commit
8a19ff3baf
@ -3,6 +3,7 @@
|
||||
- trunk contains 1.5.11 in development.
|
||||
- Fix dnstap relaying "random" messages instead of resolver/forwarder
|
||||
responses, from Nikolay Edigaryev.
|
||||
- Fix #836: unbound could echo back EDNS options in an error response.
|
||||
|
||||
20 September 2016: Wouter
|
||||
- iana portlist update.
|
||||
|
@ -878,6 +878,8 @@ mesh_send_reply(struct mesh_state* m, int rcode, struct reply_info* rep,
|
||||
comm_point_send_reply(&r->query_reply);
|
||||
} else if(rcode) {
|
||||
m->s.qinfo.qname = r->qname;
|
||||
if(!edns_opt_inplace_reply(&r->edns, m->s.region))
|
||||
r->edns.opt_list = NULL;
|
||||
error_encode(r->query_reply.c->buffer, rcode, &m->s.qinfo,
|
||||
r->qid, r->qflags, &r->edns);
|
||||
comm_point_send_reply(&r->query_reply);
|
||||
|
Loading…
Reference in New Issue
Block a user