diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-12-09 17:47:09 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-12-09 17:47:09 +0000 |
commit | 7e51d79c134f500bad96315cbfa7f8e95b110bcc (patch) | |
tree | 8d71a692e8256fb238f97e39b4a60805a1929825 /src | |
parent | 0dd7d4cbec94a444e809907126b75e0f48a1547f (diff) | |
download | gnunet-7e51d79c134f500bad96315cbfa7f8e95b110bcc.tar.gz gnunet-7e51d79c134f500bad96315cbfa7f8e95b110bcc.zip |
- dont allow NULL connections in a tunnel
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index acc90b667..7070e9b52 100644 --- 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) | |||
1585 | { | 1585 | { |
1586 | struct MeshTConnection *aux; | 1586 | struct MeshTConnection *aux; |
1587 | 1587 | ||
1588 | GNUNET_assert (NULL != c); | ||
1589 | |||
1588 | for (aux = t->connection_head; aux != NULL; aux = aux->next) | 1590 | for (aux = t->connection_head; aux != NULL; aux = aux->next) |
1589 | if (aux->c == c) | 1591 | if (aux->c == c) |
1590 | return; | 1592 | return; |