diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-07-13 01:32:57 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-07-13 01:32:57 +0000 |
commit | 2d2a68721a463882c84ccca446899be94a31c56b (patch) | |
tree | fb2770572bb69f030c2be4fa6056f928cd39c962 /src/mesh/gnunet-service-mesh.c | |
parent | 9babf324cd30822e8099dece229503ebc466e11b (diff) | |
download | gnunet-2d2a68721a463882c84ccca446899be94a31c56b.tar.gz gnunet-2d2a68721a463882c84ccca446899be94a31c56b.zip |
- connect_notify is also called with NULL on server shutdown
Diffstat (limited to 'src/mesh/gnunet-service-mesh.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 169d3ce63..d07703a7f 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c | |||
@@ -4405,6 +4405,8 @@ handle_local_client_connect (void *cls, struct GNUNET_SERVER_Client *client) | |||
4405 | { | 4405 | { |
4406 | struct MeshClient *c; | 4406 | struct MeshClient *c; |
4407 | 4407 | ||
4408 | if (NULL == client) | ||
4409 | return; | ||
4408 | c = GNUNET_malloc (sizeof (struct MeshClient)); | 4410 | c = GNUNET_malloc (sizeof (struct MeshClient)); |
4409 | c->handle = client; | 4411 | c->handle = client; |
4410 | GNUNET_SERVER_client_keep (client); | 4412 | GNUNET_SERVER_client_keep (client); |