diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-11-15 14:50:56 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-11-15 14:50:56 +0000 |
commit | 6f3db5a9f86d272c27ba8c5b3da3849c536b66e6 (patch) | |
tree | 5c31256b34d84af1ee4ca57155c00e9d437202a5 /src/namestore/test_namestore_api_remove_not_existing_record.c | |
parent | c592e22bd5c98416b81c66ccd0abb79ccb82540a (diff) | |
download | gnunet-6f3db5a9f86d272c27ba8c5b3da3849c536b66e6.tar.gz gnunet-6f3db5a9f86d272c27ba8c5b3da3849c536b66e6.zip |
implementing mantis 0002193
Diffstat (limited to 'src/namestore/test_namestore_api_remove_not_existing_record.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove_not_existing_record.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index 472ddbdfe..54a273b9b 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c | |||
@@ -79,6 +79,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
79 | if (privkey != NULL) | 79 | if (privkey != NULL) |
80 | GNUNET_CRYPTO_rsa_key_free (privkey); | 80 | GNUNET_CRYPTO_rsa_key_free (privkey); |
81 | privkey = NULL; | 81 | privkey = NULL; |
82 | GNUNET_free_non_null (s_name); | ||
82 | res = 1; | 83 | res = 1; |
83 | } | 84 | } |
84 | 85 | ||
@@ -103,6 +104,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
103 | if (nsh != NULL) | 104 | if (nsh != NULL) |
104 | GNUNET_NAMESTORE_disconnect (nsh); | 105 | GNUNET_NAMESTORE_disconnect (nsh); |
105 | nsh = NULL; | 106 | nsh = NULL; |
107 | GNUNET_free_non_null (s_name); | ||
106 | } | 108 | } |
107 | 109 | ||
108 | 110 | ||
@@ -195,7 +197,7 @@ run (void *cls, | |||
195 | GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey); | 197 | GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey); |
196 | 198 | ||
197 | /* create record */ | 199 | /* create record */ |
198 | s_name = "dummy.dummy.gnunet"; | 200 | s_name = GNUNET_NAMESTORE_normalize_string ("DUMMY.dummy.gnunet"); |
199 | s_rd = create_record (RECORDS); | 201 | s_rd = create_record (RECORDS); |
200 | 202 | ||
201 | rd_ser_len = GNUNET_NAMESTORE_records_get_size(RECORDS, s_rd); | 203 | rd_ser_len = GNUNET_NAMESTORE_records_get_size(RECORDS, s_rd); |