From: Christian Grothoff Date: Wed, 27 Jun 2012 19:31:59 +0000 (+0000) Subject: -fix X-Git-Tag: initial-import-from-subversion-38251~12765 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5330f50ec358b87f57e947909f1325a6f12549f0;p=oweals%2Fgnunet.git -fix --- diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index d699c6ee3..1900f3282 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c @@ -1122,7 +1122,7 @@ GNUNET_NAMESTORE_verify_signature (const struct GNUNET_CRYPTO_RsaPublicKeyBinary rd_ser_len = GNUNET_NAMESTORE_records_get_size (rd_count, rd); sig_len = sizeof (struct GNUNET_CRYPTO_RsaSignaturePurpose) + sizeof (struct GNUNET_TIME_AbsoluteNBO) + rd_ser_len + name_len; { - char sig_buf[rd_ser_len] GNUNET_ALIGN; + char sig_buf[sig_len] GNUNET_ALIGN; sig_purpose = (struct GNUNET_CRYPTO_RsaSignaturePurpose *) sig_buf; sig_purpose->size = htonl (sig_len);