diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-04-28 17:16:40 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-04-28 17:16:40 +0200 |
commit | b21cab7cb9da43009df76acdb779f7c89a003378 (patch) | |
tree | 5b1c2889e632f96706c26a76afd4e7eace9f6ec1 /src/abd/plugin_gnsrecord_abd.c | |
parent | e5bc04c4a1499a472f3b6f0bd41c275a8537071f (diff) | |
download | gnunet-b21cab7cb9da43009df76acdb779f7c89a003378.tar.gz gnunet-b21cab7cb9da43009df76acdb779f7c89a003378.zip |
fix ftbfs experimental -- cy1
Diffstat (limited to 'src/abd/plugin_gnsrecord_abd.c')
-rw-r--r-- | src/abd/plugin_gnsrecord_abd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/abd/plugin_gnsrecord_abd.c b/src/abd/plugin_gnsrecord_abd.c index c7635b997..850fa9a45 100644 --- a/src/abd/plugin_gnsrecord_abd.c +++ b/src/abd/plugin_gnsrecord_abd.c | |||
@@ -235,8 +235,10 @@ abd_string_to_value (void *cls, | |||
235 | (char *) &sets[1]); | 235 | (char *) &sets[1]); |
236 | for (i = 0; i < entries; i++) | 236 | for (i = 0; i < entries; i++) |
237 | { | 237 | { |
238 | if (0 != set[i].subject_attribute_len) | 238 | if (0 != set[i].subject_attribute_len) { |
239 | GNUNET_free ((char *) set[i].subject_attribute); | 239 | GNUNET_free_nz ((char *) set[i].subject_attribute); |
240 | set[i].subject_attribute = NULL; | ||
241 | } | ||
240 | } | 242 | } |
241 | sets->set_count = htonl (entries); | 243 | sets->set_count = htonl (entries); |
242 | sets->data_size = GNUNET_htonll (tmp_data_size); | 244 | sets->data_size = GNUNET_htonll (tmp_data_size); |