From: Christian Grothoff Date: Wed, 4 Jan 2012 08:11:27 +0000 (+0000) Subject: -ugh, found the bug X-Git-Tag: initial-import-from-subversion-38251~15441 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=01dead22de07c2440200c2ca6b9b26c869e3d120;p=oweals%2Fgnunet.git -ugh, found the bug --- diff --git a/src/dns/gnunet-service-dns_new.c b/src/dns/gnunet-service-dns_new.c index 16e3b7f53..51580660f 100644 --- a/src/dns/gnunet-service-dns_new.c +++ b/src/dns/gnunet-service-dns_new.c @@ -455,7 +455,7 @@ request_done (struct RequestRecord *rr) ip.header_length = sizeof (struct ip4_header) / 4; ip.version = IPVERSION; /* aka 4 */ ip.diff_serv = 0; - ip.total_length = htons ((uint16_t) reply_len); + ip.total_length = htons ((uint16_t) reply_len - off); ip.identification = (uint16_t) GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 65536); ip.flags = 0;