diff options
author | Andreas Ebner <pansy007@googlemail.com> | 2019-08-21 17:45:02 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-10-07 12:17:29 +0200 |
commit | 418b7f2cef91e344672edf3926b82a5a3043e9ba (patch) | |
tree | 26db9ebc24e8c6e9acc7fab4635205aa65969896 /src/credential/credential_serialization.c | |
parent | 6ad2e1f1dce42e5c998425e80f48d512638e278e (diff) | |
download | gnunet-418b7f2cef91e344672edf3926b82a5a3043e9ba.tar.gz gnunet-418b7f2cef91e344672edf3926b82a5a3043e9ba.zip |
Cleanup and fixes regarding bidirectional search and the test.sh files:
- removed set_entries_head/tail from DQ entry (no longer needed, using vrh->dsq_head/tail for everything)
- removed no longer required vrh->root_set (not working with forward search anyways as there are multiple root sets)
- implemented cleanup for the dq entries in the queue_entries_head list of ds entries
- added the part in cleanup handling the subject_attribute/_len to might help solve the last valgrind error (didnt work)
- changed the way the ds_entry are inserted in the vrh->dsq_.. list: Now after creation of EVERY ds_entry it is inserted
--> This solved an error resulting from uncanceled lookup_response handles
- changed the test_credential...bi..sh files:
+ "- -" at the end of the collect statement, required for MacOS
+ fixed cleanup at the end to correctly remove entries from GNS
Diffstat (limited to 'src/credential/credential_serialization.c')
-rw-r--r-- | src/credential/credential_serialization.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/credential/credential_serialization.c b/src/credential/credential_serialization.c index 564d9957b..240ab4dca 100644 --- a/src/credential/credential_serialization.c +++ b/src/credential/credential_serialization.c | |||
@@ -158,8 +158,9 @@ GNUNET_CREDENTIAL_delegates_get_size ( | |||
158 | 158 | ||
159 | for (i = 0; i < c_count; i++) | 159 | for (i = 0; i < c_count; i++) |
160 | { | 160 | { |
161 | GNUNET_assert ((ret + cd[i].issuer_attribute_len) >= ret); | 161 | GNUNET_assert ((ret + cd[i].issuer_attribute_len + cd[i].subject_attribute_len) >= ret); |
162 | ret += cd[i].issuer_attribute_len; | 162 | // subject_attribute_len should be 0 |
163 | ret += cd[i].issuer_attribute_len + cd[i].subject_attribute_len; | ||
163 | } | 164 | } |
164 | return ret; | 165 | return ret; |
165 | } | 166 | } |