aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-27 19:31:59 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-27 19:31:59 +0000
commit5330f50ec358b87f57e947909f1325a6f12549f0 (patch)
treeaa47bcd929e42e6c582257445a287f23e362ce90 /src/namestore
parentef156a0d4a77ff67e837fee2dd739f7590e91ac2 (diff)
downloadgnunet-5330f50ec358b87f57e947909f1325a6f12549f0.tar.gz
gnunet-5330f50ec358b87f57e947909f1325a6f12549f0.zip
-fix
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/namestore_api.c2
1 files changed, 1 insertions, 1 deletions
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
1122 rd_ser_len = GNUNET_NAMESTORE_records_get_size (rd_count, rd); 1122 rd_ser_len = GNUNET_NAMESTORE_records_get_size (rd_count, rd);
1123 sig_len = sizeof (struct GNUNET_CRYPTO_RsaSignaturePurpose) + sizeof (struct GNUNET_TIME_AbsoluteNBO) + rd_ser_len + name_len; 1123 sig_len = sizeof (struct GNUNET_CRYPTO_RsaSignaturePurpose) + sizeof (struct GNUNET_TIME_AbsoluteNBO) + rd_ser_len + name_len;
1124 { 1124 {
1125 char sig_buf[rd_ser_len] GNUNET_ALIGN; 1125 char sig_buf[sig_len] GNUNET_ALIGN;
1126 1126
1127 sig_purpose = (struct GNUNET_CRYPTO_RsaSignaturePurpose *) sig_buf; 1127 sig_purpose = (struct GNUNET_CRYPTO_RsaSignaturePurpose *) sig_buf;
1128 sig_purpose->size = htonl (sig_len); 1128 sig_purpose->size = htonl (sig_len);