From 90a2b1d7181640cf9b5fd47875e508c733be636d Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Wed, 23 Sep 2009 21:50:04 +0000 Subject: [PATCH] forgot heap check --- src/util/container_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/container_heap.c b/src/util/container_heap.c index 96efe9d04..16918985d 100644 --- a/src/util/container_heap.c +++ b/src/util/container_heap.c @@ -158,7 +158,7 @@ find_element (struct GNUNET_CONTAINER_heap_node *node, void *element) if (node->left_child != NULL) ret = find_element (node->left_child, element); - if (node->right_child != NULL) + if ((ret == NULL) && (node->right_child != NULL)) ret = find_element (node->right_child, element); return ret; -- 2.25.1