aboutsummaryrefslogtreecommitdiff
path: root/src/set/gnunet-service-set.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-12-09 20:27:32 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-12-09 20:27:32 +0000
commite9a2778efa6e4ee9940cdb56face621dc319787f (patch)
treeac1cf075942d17286318b2fc7fbdc9a55297bb76 /src/set/gnunet-service-set.h
parentc712a1f8b2df7406ac6d7a3346e2b066a23b37ef (diff)
downloadgnunet-e9a2778efa6e4ee9940cdb56face621dc319787f.tar.gz
gnunet-e9a2778efa6e4ee9940cdb56face621dc319787f.zip
- fix use after free in set union (#3178)
Diffstat (limited to 'src/set/gnunet-service-set.h')
-rw-r--r--src/set/gnunet-service-set.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/set/gnunet-service-set.h b/src/set/gnunet-service-set.h
index d82c72b16..95a24119b 100644
--- a/src/set/gnunet-service-set.h
+++ b/src/set/gnunet-service-set.h
@@ -311,8 +311,6 @@ struct Operation
311 /** 311 /**
312 * GNUNET_YES if this is not a "real" set operation yet, and we still 312 * GNUNET_YES if this is not a "real" set operation yet, and we still
313 * need to wait for the other peer to give us more details. 313 * need to wait for the other peer to give us more details.
314 *
315 * //TODO: replace with state-enum
316 */ 314 */
317 int is_incoming; 315 int is_incoming;
318 316
@@ -346,6 +344,12 @@ struct Operation
346 * a linked list. 344 * a linked list.
347 */ 345 */
348 struct Operation *prev; 346 struct Operation *prev;
347
348 /**
349 * Set to GNUNET_YES if the set service should not free
350 * the operation, as it is still needed (e.g. in some scheduled task).
351 */
352 int keep;
349}; 353};
350 354
351 355