diff options
-rw-r--r-- | src/datastore/plugin_datastore_heap.c | 1 | ||||
-rw-r--r-- | src/fs/gnunet-service-fs_stream.c | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/datastore/plugin_datastore_heap.c b/src/datastore/plugin_datastore_heap.c index c0ed073fc..9f9360bfb 100644 --- a/src/datastore/plugin_datastore_heap.c +++ b/src/datastore/plugin_datastore_heap.c | |||
@@ -692,6 +692,7 @@ heap_plugin_get_zero_anonymity (void *cls, uint64_t offset, | |||
692 | } | 692 | } |
693 | break; | 693 | break; |
694 | } | 694 | } |
695 | GNUNET_assert (NULL != zabt); | ||
695 | value = zabt->array[offset]; | 696 | value = zabt->array[offset]; |
696 | if (GNUNET_NO == | 697 | if (GNUNET_NO == |
697 | proc (proc_cls, | 698 | proc (proc_cls, |
diff --git a/src/fs/gnunet-service-fs_stream.c b/src/fs/gnunet-service-fs_stream.c index 50c9bfcf4..6ec5e6d30 100644 --- a/src/fs/gnunet-service-fs_stream.c +++ b/src/fs/gnunet-service-fs_stream.c | |||
@@ -847,9 +847,10 @@ GSF_stream_query_cancel (struct GSF_StreamRequest *sr) | |||
847 | struct StreamHandle *sh = sr->sh; | 847 | struct StreamHandle *sh = sr->sh; |
848 | 848 | ||
849 | if (GNUNET_YES == sr->was_transmitted) | 849 | if (GNUNET_YES == sr->was_transmitted) |
850 | GNUNET_CONTAINER_multihashmap_remove (sh->waiting_map, | 850 | GNUNET_assert (GNUNET_OK == |
851 | &sr->query, | 851 | GNUNET_CONTAINER_multihashmap_remove (sh->waiting_map, |
852 | sr); | 852 | &sr->query, |
853 | sr)); | ||
853 | else | 854 | else |
854 | GNUNET_CONTAINER_DLL_remove (sh->pending_head, | 855 | GNUNET_CONTAINER_DLL_remove (sh->pending_head, |
855 | sh->pending_tail, | 856 | sh->pending_tail, |