From: Christian Grothoff Date: Thu, 28 Nov 2013 19:28:42 +0000 (+0000) Subject: -fix bad sizeof X-Git-Tag: initial-import-from-subversion-38251~5880 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=933cd4f41e1043438900618960555a1589de95dc;p=oweals%2Fgnunet.git -fix bad sizeof --- diff --git a/src/gns/gnunet-service-gns_shorten.c b/src/gns/gnunet-service-gns_shorten.c index 25b8a033f..34dcd42f6 100644 --- a/src/gns/gnunet-service-gns_shorten.c +++ b/src/gns/gnunet-service-gns_shorten.c @@ -391,8 +391,8 @@ GNS_shorten_start (const char *original_label, GNUNET_break (0); return; } - GNUNET_CRYPTO_ecdsa_key_get_public(shorten_zone, &shorten_pub); - if (0 == memcmp (&shorten_pub, pub, sizeof (pub))) + GNUNET_CRYPTO_ecdsa_key_get_public (shorten_zone, &shorten_pub); + if (0 == memcmp (&shorten_pub, pub, sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey))) { /* Do not shorten the shorten zone */ return;