diff options
Diffstat (limited to 'src/reclaim-attribute')
-rw-r--r-- | src/reclaim-attribute/reclaim_attribute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reclaim-attribute/reclaim_attribute.c b/src/reclaim-attribute/reclaim_attribute.c index 0083ac53e..d958ba7f9 100644 --- a/src/reclaim-attribute/reclaim_attribute.c +++ b/src/reclaim-attribute/reclaim_attribute.c | |||
@@ -353,7 +353,7 @@ GNUNET_RECLAIM_ATTRIBUTE_claim_new (const char *attr_name, | |||
353 | + strlen (attr_name_tmp) + 1 + data_size); | 353 | + strlen (attr_name_tmp) + 1 + data_size); |
354 | attr->type = type; | 354 | attr->type = type; |
355 | attr->data_size = data_size; | 355 | attr->data_size = data_size; |
356 | attr->version = 0; | 356 | attr->flag = 0; |
357 | write_ptr = (char *) &attr[1]; | 357 | write_ptr = (char *) &attr[1]; |
358 | GNUNET_memcpy (write_ptr, attr_name_tmp, strlen (attr_name_tmp) + 1); | 358 | GNUNET_memcpy (write_ptr, attr_name_tmp, strlen (attr_name_tmp) + 1); |
359 | attr->name = write_ptr; | 359 | attr->name = write_ptr; |
@@ -569,8 +569,8 @@ GNUNET_RECLAIM_ATTRIBUTE_list_dup ( | |||
569 | le->claim->type, | 569 | le->claim->type, |
570 | le->claim->data, | 570 | le->claim->data, |
571 | le->claim->data_size); | 571 | le->claim->data_size); |
572 | result_le->claim->version = le->claim->version; | ||
573 | result_le->claim->id = le->claim->id; | 572 | result_le->claim->id = le->claim->id; |
573 | result_le->claim->flag = le->claim->flag; | ||
574 | GNUNET_CONTAINER_DLL_insert (result->list_head, | 574 | GNUNET_CONTAINER_DLL_insert (result->list_head, |
575 | result->list_tail, | 575 | result->list_tail, |
576 | result_le); | 576 | result_le); |
@@ -635,7 +635,7 @@ GNUNET_RECLAIM_ATTRIBUTE_serialize ( | |||
635 | 635 | ||
636 | attr_ser = (struct Attribute *) result; | 636 | attr_ser = (struct Attribute *) result; |
637 | attr_ser->attribute_type = htons (attr->type); | 637 | attr_ser->attribute_type = htons (attr->type); |
638 | attr_ser->attribute_version = htonl (attr->version); | 638 | attr_ser->attribute_version = htonl (attr->flag); |
639 | attr_ser->attribute_id = GNUNET_htonll (attr->id); | 639 | attr_ser->attribute_id = GNUNET_htonll (attr->id); |
640 | name_len = strlen (attr->name); | 640 | name_len = strlen (attr->name); |
641 | attr_ser->name_len = htons (name_len); | 641 | attr_ser->name_len = htons (name_len); |
@@ -685,7 +685,7 @@ GNUNET_RECLAIM_ATTRIBUTE_deserialize (const char *data, size_t data_size) | |||
685 | attr = GNUNET_malloc (sizeof(struct GNUNET_RECLAIM_ATTRIBUTE_Claim) | 685 | attr = GNUNET_malloc (sizeof(struct GNUNET_RECLAIM_ATTRIBUTE_Claim) |
686 | + data_len + name_len + 1); | 686 | + data_len + name_len + 1); |
687 | attr->type = ntohs (attr_ser->attribute_type); | 687 | attr->type = ntohs (attr_ser->attribute_type); |
688 | attr->version = ntohl (attr_ser->attribute_version); | 688 | attr->flag = ntohl (attr_ser->attribute_version); |
689 | attr->id = GNUNET_ntohll (attr_ser->attribute_id); | 689 | attr->id = GNUNET_ntohll (attr_ser->attribute_id); |
690 | attr->data_size = data_len; | 690 | attr->data_size = data_len; |
691 | 691 | ||