From 389e0afa4cabf4c9ed980ef7021beca067a53498 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 24 Dec 2013 14:26:56 +0000 Subject: [PATCH] - Don't crash, _break instead --- src/mesh/gnunet-service-mesh_connection.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { struct MeshFlowControl *fc; + if (NULL == c) + { + GNUNET_break (0); + return GNUNET_YES; + } fc = fwd ? &c->fwd_fc : &c->bck_fc; if (GM_is_pid_bigger (fc->last_ack_recv, fc->last_pid_sent)) return GNUNET_YES; -- 2.25.1