-fix bad sizeof
authorChristian Grothoff <christian@grothoff.org>
Thu, 28 Nov 2013 19:28:42 +0000 (19:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 28 Nov 2013 19:28:42 +0000 (19:28 +0000)
src/gns/gnunet-service-gns_shorten.c

index 25b8a033f565894e0fd71012e7577035fc1db9d1..34dcd42f6bf1faebc580c16e553c693af49c88c9 100644 (file)
@@ -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;