diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-04 08:11:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-04 08:11:27 +0000 |
commit | 01dead22de07c2440200c2ca6b9b26c869e3d120 (patch) | |
tree | 54eb746072e62ff1fb0289c009aef1e632856a02 /src/dns | |
parent | 121d28141d051650c7ec60c83cbf917fce0516cd (diff) | |
download | gnunet-01dead22de07c2440200c2ca6b9b26c869e3d120.tar.gz gnunet-01dead22de07c2440200c2ca6b9b26c869e3d120.zip |
-ugh, found the bug
Diffstat (limited to 'src/dns')
-rw-r--r-- | src/dns/gnunet-service-dns_new.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
455 | ip.header_length = sizeof (struct ip4_header) / 4; | 455 | ip.header_length = sizeof (struct ip4_header) / 4; |
456 | ip.version = IPVERSION; /* aka 4 */ | 456 | ip.version = IPVERSION; /* aka 4 */ |
457 | ip.diff_serv = 0; | 457 | ip.diff_serv = 0; |
458 | ip.total_length = htons ((uint16_t) reply_len); | 458 | ip.total_length = htons ((uint16_t) reply_len - off); |
459 | ip.identification = (uint16_t) GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, | 459 | ip.identification = (uint16_t) GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, |
460 | 65536); | 460 | 65536); |
461 | ip.flags = 0; | 461 | ip.flags = 0; |