diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-02-07 15:36:43 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-02-09 20:38:11 +0100 |
commit | 141a279fb55bc9b11aaa765ca3ad54689003e291 (patch) | |
tree | 2519ee820288fae481ae972963dea24fd86ffb59 /src/reclaim-attribute | |
parent | d06446f143610790d9a0530d524d8e9db2a03b8c (diff) | |
download | gnunet-141a279fb55bc9b11aaa765ca3ad54689003e291.tar.gz gnunet-141a279fb55bc9b11aaa765ca3ad54689003e291.zip |
bugfixes; CLI improvements
Diffstat (limited to 'src/reclaim-attribute')
-rw-r--r-- | src/reclaim-attribute/reclaim_attribute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reclaim-attribute/reclaim_attribute.c b/src/reclaim-attribute/reclaim_attribute.c index 0e3fae849..12f124c15 100644 --- a/src/reclaim-attribute/reclaim_attribute.c +++ b/src/reclaim-attribute/reclaim_attribute.c | |||
@@ -470,6 +470,7 @@ GNUNET_RECLAIM_attribute_serialize ( | |||
470 | attr_ser->attribute_type = htons (attr->type); | 470 | attr_ser->attribute_type = htons (attr->type); |
471 | attr_ser->attribute_flag = htonl (attr->flag); | 471 | attr_ser->attribute_flag = htonl (attr->flag); |
472 | attr_ser->attribute_id = attr->id; | 472 | attr_ser->attribute_id = attr->id; |
473 | attr_ser->attestation_id = attr->attestation; | ||
473 | name_len = strlen (attr->name); | 474 | name_len = strlen (attr->name); |
474 | attr_ser->name_len = htons (name_len); | 475 | attr_ser->name_len = htons (name_len); |
475 | write_ptr = (char *) &attr_ser[1]; | 476 | write_ptr = (char *) &attr_ser[1]; |
@@ -520,6 +521,7 @@ GNUNET_RECLAIM_attribute_deserialize (const char *data, size_t data_size) | |||
520 | attr->type = ntohs (attr_ser->attribute_type); | 521 | attr->type = ntohs (attr_ser->attribute_type); |
521 | attr->flag = ntohl (attr_ser->attribute_flag); | 522 | attr->flag = ntohl (attr_ser->attribute_flag); |
522 | attr->id = attr_ser->attribute_id; | 523 | attr->id = attr_ser->attribute_id; |
524 | attr->attestation = attr_ser->attestation_id; | ||
523 | attr->data_size = data_len; | 525 | attr->data_size = data_len; |
524 | 526 | ||
525 | write_ptr = (char *) &attr[1]; | 527 | write_ptr = (char *) &attr[1]; |