aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-11-22 12:29:21 +0000
committerNathan S. Evans <evans@in.tum.de>2010-11-22 12:29:21 +0000
commit8b2e3426bf1b5ddfd54ce7a123dd17159247472a (patch)
treed92d2d09cc458a5ee90b3241cd6805b2f5362b57 /src/core
parentb294756144c6946da593df870d61c2cc3a66a44f (diff)
downloadgnunet-8b2e3426bf1b5ddfd54ce7a123dd17159247472a.tar.gz
gnunet-8b2e3426bf1b5ddfd54ce7a123dd17159247472a.zip
checking if pending_head is NULL, may not be correct
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index 48de0a214..02c9e43a2 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -666,6 +666,12 @@ transmit_message (void *cls,
666 /* now check for 'ready' P2P messages */ 666 /* now check for 'ready' P2P messages */
667 if (NULL != (pr = h->ready_peer_head)) 667 if (NULL != (pr = h->ready_peer_head))
668 { 668 {
669 /* FIXME: If a reconnect_later call happened, this can be NULL! */
670 if (pr->pending_head == NULL)
671 {
672 GNUNET_break(0);
673 return 0;
674 }
669 th = pr->pending_head; 675 th = pr->pending_head;
670 if (size < th->msize + sizeof (struct SendMessage)) 676 if (size < th->msize + sizeof (struct SendMessage))
671 { 677 {