From: Bart Polot Date: Tue, 17 Dec 2013 04:56:00 +0000 (+0000) Subject: - include all message types in switch, complain if unknown X-Git-Tag: initial-import-from-subversion-38251~5398 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=89a7774af91682ffb47274744a3f6bc2a905e51f;p=oweals%2Fgnunet.git - include all message types in switch, complain if unknown --- 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))