From 01dead22de07c2440200c2ca6b9b26c869e3d120 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 4 Jan 2012 08:11:27 +0000 Subject: [PATCH] -ugh, found the bug --- src/dns/gnunet-service-dns_new.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1