summaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-service-conversation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conversation/gnunet-service-conversation.c')
-rw-r--r--src/conversation/gnunet-service-conversation.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c
index 5f43bfe80..7d319e51e 100644
--- a/src/conversation/gnunet-service-conversation.c
+++ b/src/conversation/gnunet-service-conversation.c
@@ -1270,6 +1270,14 @@ handle_client_register_message (void *cls,
NULL,
&inbound_end,
cadet_handlers);
+ if (NULL == line->port)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ _("Could not open line, port %s already in use!\n"),
+ GNUNET_h2s (&msg->line_port));
+ GNUNET_SERVICE_client_drop (line->client);
+ return;
+ }
GNUNET_SERVICE_client_continue (line->client);
}