diff options
Diffstat (limited to 'src')
-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); |