aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_heap.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2009-09-23 21:50:04 +0000
committerNathan S. Evans <evans@in.tum.de>2009-09-23 21:50:04 +0000
commit90a2b1d7181640cf9b5fd47875e508c733be636d (patch)
tree50edce08a2de79924dd9b07bdf790de7e874f85e /src/util/container_heap.c
parent984945fc8ee48878724a0a5eef00cdae00329b97 (diff)
downloadgnunet-90a2b1d7181640cf9b5fd47875e508c733be636d.tar.gz
gnunet-90a2b1d7181640cf9b5fd47875e508c733be636d.zip
forgot heap check
Diffstat (limited to 'src/util/container_heap.c')
-rw-r--r--src/util/container_heap.c2
1 files changed, 1 insertions, 1 deletions
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)
158 if (node->left_child != NULL) 158 if (node->left_child != NULL)
159 ret = find_element (node->left_child, element); 159 ret = find_element (node->left_child, element);
160 160
161 if (node->right_child != NULL) 161 if ((ret == NULL) && (node->right_child != NULL))
162 ret = find_element (node->right_child, element); 162 ret = find_element (node->right_child, element);
163 163
164 return ret; 164 return ret;