aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore_api_monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/namestore_api_monitor.c')
-rw-r--r--src/namestore/namestore_api_monitor.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/namestore/namestore_api_monitor.c b/src/namestore/namestore_api_monitor.c
index 2c4c4559d..457da0b90 100644
--- a/src/namestore/namestore_api_monitor.c
+++ b/src/namestore/namestore_api_monitor.c
@@ -129,6 +129,7 @@ static int
129check_result (void *cls, 129check_result (void *cls,
130 const struct RecordResultMessage *lrm) 130 const struct RecordResultMessage *lrm)
131{ 131{
132 static struct GNUNET_CRYPTO_EcdsaPrivateKey zero;
132 struct GNUNET_NAMESTORE_ZoneMonitor *zm = cls; 133 struct GNUNET_NAMESTORE_ZoneMonitor *zm = cls;
133 size_t lrm_len; 134 size_t lrm_len;
134 size_t exp_lrm_len; 135 size_t exp_lrm_len;
@@ -139,9 +140,12 @@ check_result (void *cls,
139 const char *rd_ser_tmp; 140 const char *rd_ser_tmp;
140 141
141 (void) cls; 142 (void) cls;
142 if (0 != memcmp (&lrm->private_key, 143 if ( (0 != memcmp (&lrm->private_key,
143 &zm->zone, 144 &zm->zone,
144 sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) 145 sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) &&
146 (0 != memcmp (&zero,
147 &zm->zone,
148 sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) )
145 { 149 {
146 GNUNET_break (0); 150 GNUNET_break (0);
147 return GNUNET_SYSERR; 151 return GNUNET_SYSERR;