aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index c8be12aa7..7fbe0cd52 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -587,7 +587,6 @@ message_sent (void *cls,
587 pid = 0; 587 pid = 0;
588 LOG (GNUNET_ERROR_TYPE_DEBUG, " %ssent %s %s\n", 588 LOG (GNUNET_ERROR_TYPE_DEBUG, " %ssent %s %s\n",
589 sent ? "" : "not ", GM_f2s (fwd), GM_m2s (type)); 589 sent ? "" : "not ", GM_f2s (fwd), GM_m2s (type));
590 LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages);
591 if (NULL != q) 590 if (NULL != q)
592 { 591 {
593 pid = q->pid; 592 pid = q->pid;
@@ -608,6 +607,13 @@ message_sent (void *cls,
608 { 607 {
609 forced = GNUNET_NO; 608 forced = GNUNET_NO;
610 } 609 }
610 if (NULL == c)
611 {
612 GNUNET_break (type == GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN ||
613 type == GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY);
614 return;
615 }
616 LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages);
611 c->pending_messages--; 617 c->pending_messages--;
612 if (GNUNET_YES == c->destroy && 0 == c->pending_messages) 618 if (GNUNET_YES == c->destroy && 0 == c->pending_messages)
613 { 619 {