[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13956 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13956 - gnunet/src/dht |
Date: |
Tue, 21 Dec 2010 13:52:11 +0100 |
Author: nevans
Date: 2010-12-21 13:52:11 +0100 (Tue, 21 Dec 2010)
New Revision: 13956
Modified:
gnunet/src/dht/gnunet-service-dht.c
Log:
coverity fix
Modified: gnunet/src/dht/gnunet-service-dht.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht.c 2010-12-21 12:43:03 UTC (rev 13955)
+++ gnunet/src/dht/gnunet-service-dht.c 2010-12-21 12:52:11 UTC (rev 13956)
@@ -1175,7 +1175,6 @@
off += msize;
peer->pending_count--;
increment_stats ("# pending messages sent");
- GNUNET_assert (peer->pending_count >= 0);
GNUNET_CONTAINER_DLL_remove (peer->head, peer->tail, pending);
GNUNET_free (pending);
pending = peer->head;
@@ -3339,7 +3338,7 @@
continue; /* Ignore bloomfiltered peers */
}
temp_converge_distance = converge_distance (target, pos, hops);
- if ((temp_converge_distance <= ULLONG_MAX) && (total_distance +
temp_converge_distance > total_distance)) /* Handle largest case and
overflow */
+ if (total_distance + temp_converge_distance > total_distance) /*
Handle largest case and overflow */
total_distance += temp_converge_distance;
else
break; /* overflow case */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13956 - gnunet/src/dht,
gnunet <=