From 89a7774af91682ffb47274744a3f6bc2a905e51f Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 17 Dec 2013 04:56:00 +0000 Subject: [PATCH] - include all message types in switch, complain if unknown --- src/mesh/gnunet-service-mesh_peer.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mesh/gnunet-service-mesh_peer.c b/src/mesh/gnunet-service-mesh_peer.c index c4f27e114..262310c83 100644 --- a/src/mesh/gnunet-service-mesh_peer.c +++ b/src/mesh/gnunet-service-mesh_peer.c @@ -688,7 +688,18 @@ queue_is_sendable (struct MeshPeerQueue *q) case GNUNET_MESSAGE_TYPE_MESH_ACK: case GNUNET_MESSAGE_TYPE_MESH_POLL: case GNUNET_MESSAGE_TYPE_MESH_KX: + case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_CREATE: + case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_ACK: + case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY: + case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN: + case GNUNET_MESSAGE_TYPE_MESH_KEEPALIVE: return GNUNET_YES; + + case GNUNET_MESSAGE_TYPE_MESH_ENCRYPTED: + break; + + default: + GNUNET_break (0); } if (GMC_is_sendable (q->c, q->fwd)) -- 2.25.1