aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/reclaim_credential.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2020-12-25 21:37:28 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2020-12-25 21:37:28 +0900
commit1e37e8edc0c23674df6c2144e3f2d83e3dbc1bc2 (patch)
tree52c42a8155537045c1c7557bf13853b711a1cb64 /src/reclaim/reclaim_credential.c
parentdebba1a49a46ba963553da222ade563d6d67932b (diff)
downloadgnunet-1e37e8edc0c23674df6c2144e3f2d83e3dbc1bc2.tar.gz
gnunet-1e37e8edc0c23674df6c2144e3f2d83e3dbc1bc2.zip
fix error in presentation handling
Diffstat (limited to 'src/reclaim/reclaim_credential.c')
-rw-r--r--src/reclaim/reclaim_credential.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/reclaim/reclaim_credential.c b/src/reclaim/reclaim_credential.c
index 5c8974400..b85ba5955 100644
--- a/src/reclaim/reclaim_credential.c
+++ b/src/reclaim/reclaim_credential.c
@@ -721,7 +721,6 @@ GNUNET_RECLAIM_presentation_list_serialize_get_size (
721 { 721 {
722 GNUNET_assert (NULL != le->presentation); 722 GNUNET_assert (NULL != le->presentation);
723 len += GNUNET_RECLAIM_presentation_serialize_get_size (le->presentation); 723 len += GNUNET_RECLAIM_presentation_serialize_get_size (le->presentation);
724 len += sizeof(struct GNUNET_RECLAIM_PresentationListEntry);
725 } 724 }
726 return len; 725 return len;
727} 726}
@@ -774,8 +773,7 @@ GNUNET_RECLAIM_presentation_list_deserialize (const char *data, size_t
774 773
775 al = GNUNET_new (struct GNUNET_RECLAIM_PresentationList); 774 al = GNUNET_new (struct GNUNET_RECLAIM_PresentationList);
776 775
777 if ((data_size < sizeof(struct Presentation) 776 if (data_size < sizeof(struct Presentation))
778 + sizeof(struct GNUNET_RECLAIM_PresentationListEntry)))
779 return al; 777 return al;
780 778
781 read_ptr = data; 779 read_ptr = data;