diff options
author | Florian Dold <florian.dold@gmail.com> | 2013-11-26 15:51:09 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2013-11-26 15:51:09 +0000 |
commit | 7a36cca82185cfaae4eb93b26677f9b198457459 (patch) | |
tree | d43107e1b76e34240ab140ad5f9ebd52609f2810 /src/set | |
parent | 083fbead617611637601181810739a547cfaacac (diff) | |
download | gnunet-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.c | 8 |
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); |