]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Explain what we do.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 18 Apr 2016 12:00:57 +0000 (12:00 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 18 Apr 2016 12:00:57 +0000 (12:00 +0000)
git-svn-id: file:///svn/unbound/trunk@3702 be551aaa-1e26-0410-a405-d3ace91eadb9

services/outside_network.c

index e4d1fb1b918bce0fd60064529b32d886617ed7d0..28d749a33c197e6017a2e597f34ffbfbe02e4db2 100644 (file)
@@ -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)
 {