aboutsummaryrefslogtreecommitdiff
path: root/src/set
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-11-26 15:51:09 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-11-26 15:51:09 +0000
commit7a36cca82185cfaae4eb93b26677f9b198457459 (patch)
treed43107e1b76e34240ab140ad5f9ebd52609f2810 /src/set
parent083fbead617611637601181810739a547cfaacac (diff)
downloadgnunet-7a36cca82185cfaae4eb93b26677f9b198457459.tar.gz
gnunet-7a36cca82185cfaae4eb93b26677f9b198457459.zip
- fixed handling of incorrect channel port
Diffstat (limited to 'src/set')
-rw-r--r--src/set/gnunet-service-set.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c
index 3c5e80606..77e385cb3 100644
--- a/src/set/gnunet-service-set.c
+++ b/src/set/gnunet-service-set.c
@@ -1198,7 +1198,13 @@ channel_new_cb (void *cls,
1198 1198
1199 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "new incoming channel\n"); 1199 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "new incoming channel\n");
1200 1200
1201 GNUNET_assert (port == GNUNET_APPLICATION_TYPE_SET); 1201 if (GNUNET_APPLICATION_TYPE_SET != port)
1202 {
1203 GNUNET_break (0);
1204 GNUNET_MESH_channel_destroy (channel);
1205 return;
1206 }
1207
1202 incoming = GNUNET_new (struct Operation); 1208 incoming = GNUNET_new (struct Operation);
1203 incoming->is_incoming = GNUNET_YES; 1209 incoming->is_incoming = GNUNET_YES;
1204 incoming->state = GNUNET_new (struct OperationState); 1210 incoming->state = GNUNET_new (struct OperationState);