diff options
Diffstat (limited to 'src/namestore/plugin_namestore_heap.c')
-rw-r--r-- | src/namestore/plugin_namestore_heap.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/namestore/plugin_namestore_heap.c b/src/namestore/plugin_namestore_heap.c index 01cf592ea..8fe03764d 100644 --- a/src/namestore/plugin_namestore_heap.c +++ b/src/namestore/plugin_namestore_heap.c | |||
@@ -592,9 +592,8 @@ iterate_zones (void *cls, | |||
592 | if (0 == ic->limit) | 592 | if (0 == ic->limit) |
593 | return GNUNET_NO; | 593 | return GNUNET_NO; |
594 | if ( (NULL != ic->zone) && | 594 | if ( (NULL != ic->zone) && |
595 | (0 != memcmp (&entry->private_key, | 595 | (0 != GNUNET_memcmp (&entry->private_key, |
596 | ic->zone, | 596 | ic->zone)) ) |
597 | sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) ) | ||
598 | return GNUNET_YES; | 597 | return GNUNET_YES; |
599 | ic->pos++; | 598 | ic->pos++; |
600 | if (ic->offset > 0) | 599 | if (ic->offset > 0) |
@@ -676,9 +675,8 @@ zone_to_name (void *cls, | |||
676 | struct FlatFileEntry *entry = value; | 675 | struct FlatFileEntry *entry = value; |
677 | 676 | ||
678 | (void) key; | 677 | (void) key; |
679 | if (0 != memcmp (&entry->private_key, | 678 | if (0 != GNUNET_memcmp (&entry->private_key, |
680 | ztn->zone, | 679 | ztn->zone)) |
681 | sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) | ||
682 | return GNUNET_YES; | 680 | return GNUNET_YES; |
683 | 681 | ||
684 | for (unsigned int i = 0; i < entry->record_count; i++) | 682 | for (unsigned int i = 0; i < entry->record_count; i++) |