applying patch from #3950 by jah
authorChristian Grothoff <christian@grothoff.org>
Tue, 25 Aug 2015 15:05:54 +0000 (15:05 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 25 Aug 2015 15:05:54 +0000 (15:05 +0000)
src/dns/dnsparser.c

index 7f1f684e7b3786108165ca22170f250b6ff0c564..0068cc60d2c1c4392a49f1a87ca3ae6d26b018d6 100644 (file)
@@ -548,7 +548,7 @@ GNUNET_DNSPARSER_parse_cert (const char *udp_payload,
     return NULL;
   }
   memcpy (&dcert, &udp_payload[*off], sizeof (struct GNUNET_TUN_DnsCertRecord));
-  (*off) += sizeof (sizeof (struct GNUNET_TUN_DnsCertRecord));
+  (*off) += sizeof (struct GNUNET_TUN_DnsCertRecord);
   cert = GNUNET_new (struct GNUNET_DNSPARSER_CertRecord);
   cert->cert_type = ntohs (dcert.cert_type);
   cert->cert_tag = ntohs (dcert.cert_tag);