diff options
-rw-r--r-- | src/mesh/gnunet-service-mesh_connection.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index 3d4f18678..3b526afeb 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c | |||
@@ -2696,6 +2696,11 @@ GMC_is_sendable (struct MeshConnection *c, int fwd) | |||
2696 | { | 2696 | { |
2697 | struct MeshFlowControl *fc; | 2697 | struct MeshFlowControl *fc; |
2698 | 2698 | ||
2699 | if (NULL == c) | ||
2700 | { | ||
2701 | GNUNET_break (0); | ||
2702 | return GNUNET_YES; | ||
2703 | } | ||
2699 | fc = fwd ? &c->fwd_fc : &c->bck_fc; | 2704 | fc = fwd ? &c->fwd_fc : &c->bck_fc; |
2700 | if (GM_is_pid_bigger (fc->last_ack_recv, fc->last_pid_sent)) | 2705 | if (GM_is_pid_bigger (fc->last_ack_recv, fc->last_pid_sent)) |
2701 | return GNUNET_YES; | 2706 | return GNUNET_YES; |