gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r18965 - gnunet/src/dns


From: gnunet
Subject: [GNUnet-SVN] r18965 - gnunet/src/dns
Date: Wed, 4 Jan 2012 09:11:27 +0100

Author: grothoff
Date: 2012-01-04 09:11:27 +0100 (Wed, 04 Jan 2012)
New Revision: 18965

Modified:
   gnunet/src/dns/gnunet-service-dns_new.c
Log:
-ugh, found the bug

Modified: gnunet/src/dns/gnunet-service-dns_new.c
===================================================================
--- gnunet/src/dns/gnunet-service-dns_new.c     2012-01-04 06:51:07 UTC (rev 
18964)
+++ gnunet/src/dns/gnunet-service-dns_new.c     2012-01-04 08:11:27 UTC (rev 
18965)
@@ -455,7 +455,7 @@
        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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]