aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r--src/core/core_api.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index a2e0dae09..f4a197909 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -1728,6 +1728,10 @@ GNUNET_CORE_peer_request_connect (struct GNUNET_CORE_Handle *h,
1728 struct GNUNET_CORE_PeerRequestHandle *ret; 1728 struct GNUNET_CORE_PeerRequestHandle *ret;
1729 struct ControlMessage *cm; 1729 struct ControlMessage *cm;
1730 struct ConnectMessage *msg; 1730 struct ConnectMessage *msg;
1731
1732 if (NULL != GNUNET_CONTAINER_multihashmap_get (h->peers,
1733 &peer->hashPubKey))
1734 GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, "core_api", "Received CONNECT requests for already connected peer!\n");
1731 1735
1732 cm = GNUNET_malloc (sizeof (struct ControlMessage) + 1736 cm = GNUNET_malloc (sizeof (struct ControlMessage) +
1733 sizeof (struct ConnectMessage)); 1737 sizeof (struct ConnectMessage));