projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f65b9f
)
- fix crash on typeless clients
author
Bart Polot
<bart@net.in.tum.de>
Fri, 27 Jul 2012 14:56:08 +0000
(14:56 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Fri, 27 Jul 2012 14:56:08 +0000
(14:56 +0000)
src/mesh/gnunet-service-mesh.c
patch
|
blob
|
history
diff --git
a/src/mesh/gnunet-service-mesh.c
b/src/mesh/gnunet-service-mesh.c
index efa2ad9453043d4d8060e90ebdec9969b8c9a15f..b3f739c00ea92d0483219d69435f743301b90f32 100644
(file)
--- a/
src/mesh/gnunet-service-mesh.c
+++ b/
src/mesh/gnunet-service-mesh.c
@@
-1666,6
+1666,8
@@
client_is_subscribed (uint16_t message_type, struct MeshClient *c)
{
struct GNUNET_HashCode hc;
+ if (NULL == c->types)
+ return GNUNET_NO;
GNUNET_CRYPTO_hash (&message_type, sizeof (uint16_t), &hc);
return GNUNET_CONTAINER_multihashmap_contains (c->types, &hc);
}
@@
-6259,6
+6261,7
@@
handle_local_unicast (void *cls, struct GNUNET_SERVER_Client *client,
handle_mesh_data_unicast (NULL, &my_full_id, ©->header, NULL, 0);
send_client_tunnel_ack (t->owner, t);
}
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "receive done OK\n");
GNUNET_SERVER_receive_done (client, GNUNET_OK);
return;
}