From: Martin Schanzenbach Date: Mon, 2 Jul 2012 13:20:35 +0000 (+0000) Subject: -fix X-Git-Tag: initial-import-from-subversion-38251~12698 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=780ae8640aecb6ab7459da0e1104094093720388;p=oweals%2Fgnunet.git -fix --- diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c index f859c915a..7d2f8a8b6 100644 --- a/src/gns/gnunet-gns.c +++ b/src/gns/gnunet-gns.c @@ -196,7 +196,7 @@ run (void *cls, char *const *args, const char *cfgfile, if (GNUNET_YES == GNUNET_DISK_file_test (keyfile)) { shorten_key = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile); - GNUNET_CRYPTO_rsa_key_get_public (key, &pkey); + GNUNET_CRYPTO_rsa_key_get_public (shorten_key, &pkey); GNUNET_CRYPTO_short_hash(&pkey, sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), &shorten_zone); @@ -223,7 +223,7 @@ run (void *cls, char *const *args, const char *cfgfile, if (GNUNET_YES == GNUNET_DISK_file_test (keyfile)) { private_key = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile); - GNUNET_CRYPTO_rsa_key_get_public (key, &pkey); + GNUNET_CRYPTO_rsa_key_get_public (private_key, &pkey); GNUNET_CRYPTO_short_hash(&pkey, sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), &private_zone);