-ugh, found the bug
authorChristian Grothoff <christian@grothoff.org>
Wed, 4 Jan 2012 08:11:27 +0000 (08:11 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 4 Jan 2012 08:11:27 +0000 (08:11 +0000)
src/dns/gnunet-service-dns_new.c

index 16e3b7f5318bd360f407b1200f9691f5b774c1aa..51580660fd1c74854a5d5ea00b0a07b2b831a44c 100644 (file)
@@ -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;