commit 7e51d79c134f500bad96315cbfa7f8e95b110bcc
parent 0dd7d4cbec94a444e809907126b75e0f48a1547f
Author: Bart Polot <bart@net.in.tum.de>
Date: Mon, 9 Dec 2013 17:47:09 +0000
- dont allow NULL connections in a tunnel
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -1585,6 +1585,8 @@ GMT_add_connection (struct MeshTunnel3 *t, struct MeshConnection *c)
{
struct MeshTConnection *aux;
+ GNUNET_assert (NULL != c);
+
for (aux = t->connection_head; aux != NULL; aux = aux->next)
if (aux->c == c)
return;