diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-04-11 11:37:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-04-11 11:37:46 +0200 |
commit | 51e9f26b1014d6f935cacad7da75d98234653482 (patch) | |
tree | ecbd7394cfd571c8041767287ea17e7cb862f1ca /src/conversation | |
parent | 2b3d804abaff87da0b07f8f6da115a05f6664ebe (diff) |
fix #4985
Diffstat (limited to 'src/conversation')
-rw-r--r-- | src/conversation/gnunet-service-conversation.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c index 5f43bfe80d..7d319e51e1 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); } |