aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_api_remove.c')
-rw-r--r--src/namestore/test_namestore_api_remove.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c
index e9b13ccf5..31631da7d 100644
--- a/src/namestore/test_namestore_api_remove.c
+++ b/src/namestore/test_namestore_api_remove.c
@@ -174,7 +174,12 @@ void name_lookup_proc (void *cls,
174 GNUNET_break (0 == memcmp (rd[c].data, s_rd[c+1].data, TEST_RECORD_DATALEN)); 174 GNUNET_break (0 == memcmp (rd[c].data, s_rd[c+1].data, TEST_RECORD_DATALEN));
175 } 175 }
176 176
177 found = GNUNET_YES; 177 if (GNUNET_OK != GNUNET_NAMESTORE_verify_signature(&pubkey, n, rd_count, rd, signature))
178 {
179 GNUNET_break (0);
180 failed = GNUNET_YES;
181 }
182
178 if (failed == GNUNET_NO) 183 if (failed == GNUNET_NO)
179 res = 0; 184 res = 0;
180 else 185 else
@@ -205,7 +210,7 @@ remove_cont (void *cls, int32_t success, const char *emsg)
205 else 210 else
206 { 211 {
207 res = 1; 212 res = 1;
208 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to put records for name `%s'\n", name); 213 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to remove record for name `%s'\n", name);
209 GNUNET_SCHEDULER_add_now(&end, NULL); 214 GNUNET_SCHEDULER_add_now(&end, NULL);
210 } 215 }
211 216