From 0d5d685514f792a1512ccd1dccd18cb6c485f020 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 18 Apr 2016 12:00:57 +0000 Subject: [PATCH] Explain what we do. git-svn-id: file:///svn/unbound/trunk@3702 be551aaa-1e26-0410-a405-d3ace91eadb9 --- services/outside_network.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/outside_network.c b/services/outside_network.c index e4d1fb1b9..28d749a33 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -1708,7 +1708,11 @@ serviced_tcp_send(struct serviced_query* sq, sldns_buffer* buff) return sq->pending != NULL; } -/* see if packet is edns malformed; got zeroes at start */ +/* see if packet is edns malformed; got zeroes at start. + * This is from servers that return malformed packets to EDNS0 queries, + * but they return good packets for nonEDNS0 queries. + * We try to detect their output; without resorting to a full parse or + * check for too many bytes after the end of the packet. */ static int packet_edns_malformed(struct sldns_buffer* buf, uint16_t qtype) {