summaryrefslogtreecommitdiff
path: root/src/namestore/plugin_namestore_sqlite.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-06 08:51:19 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-06 08:51:19 +0000
commit9239e7af2ddec7f0bdce670476f8aeed2327229e (patch)
treed33a7ad9de135a857d4f0469306de3a68b30290d /src/namestore/plugin_namestore_sqlite.c
parentd95cb5451bf787605502ee416f0bfb6b006083ad (diff)
downloadgnunet-9239e7af2ddec7f0bdce670476f8aeed2327229e.tar.gz
gnunet-9239e7af2ddec7f0bdce670476f8aeed2327229e.zip
- segfault
Diffstat (limited to 'src/namestore/plugin_namestore_sqlite.c')
-rw-r--r--src/namestore/plugin_namestore_sqlite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c
index 2d660cb7e..a6009611c 100644
--- a/src/namestore/plugin_namestore_sqlite.c
+++ b/src/namestore/plugin_namestore_sqlite.c
@@ -467,7 +467,7 @@ namestore_sqlite_put_records (void *cls,
467 struct Plugin *plugin = cls; 467 struct Plugin *plugin = cls;
468 int n; 468 int n;
469 GNUNET_HashCode zone; 469 GNUNET_HashCode zone;
470 GNUNET_HashCode zone_delegation; 470 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded zone_delegation;
471 GNUNET_HashCode nh; 471 GNUNET_HashCode nh;
472 size_t name_len; 472 size_t name_len;
473 uint64_t rvalue; 473 uint64_t rvalue;
@@ -483,6 +483,7 @@ namestore_sqlite_put_records (void *cls,
483 if (rd[i].record_type == GNUNET_NAMESTORE_TYPE_PKEY) 483 if (rd[i].record_type == GNUNET_NAMESTORE_TYPE_PKEY)
484 { 484 {
485 GNUNET_assert (sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) == rd[i].data_size); 485 GNUNET_assert (sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) == rd[i].data_size);
486 GNUNET_break (0);
486 memcpy (&zone_delegation, 487 memcpy (&zone_delegation,
487 rd[i].data, 488 rd[i].data,
488 sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded)); 489 sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded));