From: Wouter Wijngaards Date: Mon, 18 Apr 2016 12:00:57 +0000 (+0000) Subject: Explain what we do. X-Git-Tag: release-1.5.9rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d5d685514f792a1512ccd1dccd18cb6c485f020;p=thirdparty%2Funbound.git Explain what we do. git-svn-id: file:///svn/unbound/trunk@3702 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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) {