diff options
author | Florian Dold <florian.dold@gmail.com> | 2015-10-05 23:16:17 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2015-10-05 23:16:17 +0000 |
commit | 1526a366e98d0f7ac4f82c548273c9f2c06f553f (patch) | |
tree | b59434fda2636116c27ef161ac0bef5f2e51d15c /src/set/gnunet-service-set_union.c | |
parent | 2b8265dc5cbf796f01d40c6b1e82fd0852364d16 (diff) | |
download | gnunet-1526a366e98d0f7ac4f82c548273c9f2c06f553f.tar.gz gnunet-1526a366e98d0f7ac4f82c548273c9f2c06f553f.zip |
include element type in hash
Diffstat (limited to 'src/set/gnunet-service-set_union.c')
-rw-r--r-- | src/set/gnunet-service-set_union.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c index c32acc1e6..2940c3c2d 100644 --- a/src/set/gnunet-service-set_union.c +++ b/src/set/gnunet-service-set_union.c | |||
@@ -1078,9 +1078,7 @@ handle_p2p_elements (void *cls, | |||
1078 | ee->element.data = &ee[1]; | 1078 | ee->element.data = &ee[1]; |
1079 | ee->element.element_type = ntohs (emsg->element_type); | 1079 | ee->element.element_type = ntohs (emsg->element_type); |
1080 | ee->remote = GNUNET_YES; | 1080 | ee->remote = GNUNET_YES; |
1081 | GNUNET_CRYPTO_hash (ee->element.data, | 1081 | GNUNET_SET_element_hash (&ee->element, &ee->element_hash); |
1082 | ee->element.size, | ||
1083 | &ee->element_hash); | ||
1084 | 1082 | ||
1085 | if (GNUNET_NO == GNUNET_CONTAINER_multihashmap_remove (op->state->demanded_hashes, &ee->element_hash, NULL)) | 1083 | if (GNUNET_NO == GNUNET_CONTAINER_multihashmap_remove (op->state->demanded_hashes, &ee->element_hash, NULL)) |
1086 | { | 1084 | { |