diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-17 15:09:57 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-17 15:09:57 +0000 |
commit | 3546e3b90ad958eb9fd3d372c7bd53400853b698 (patch) | |
tree | 1a78a6cad28771ee9cba12b929a8ed94d87d7c7d /src/mesh | |
parent | 39f404410ad90df5f9a3d5ad7b144ebdbb9e01f0 (diff) | |
download | gnunet-3546e3b90ad958eb9fd3d372c7bd53400853b698.tar.gz gnunet-3546e3b90ad958eb9fd3d372c7bd53400853b698.zip |
- fix segfault
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/gnunet-service-mesh_connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index abc04e8a2..e966e7192 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c | |||
@@ -1825,7 +1825,8 @@ GMC_destroy (struct MeshConnection *c) | |||
1825 | 1825 | ||
1826 | /* Delete */ | 1826 | /* Delete */ |
1827 | GNUNET_STATISTICS_update (stats, "# connections", -1, GNUNET_NO); | 1827 | GNUNET_STATISTICS_update (stats, "# connections", -1, GNUNET_NO); |
1828 | GMT_remove_connection (c->t, c); | 1828 | if (NULL != c->t) |
1829 | GMT_remove_connection (c->t, c); | ||
1829 | GNUNET_free (c); | 1830 | GNUNET_free (c); |
1830 | } | 1831 | } |
1831 | 1832 | ||