From 6f38c4c15646d121f56c89e399c1f06c5388cc6c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 16 Dec 2014 20:30:52 +0000 Subject: -pass peer identity pointer to clients that will remain allocated --- src/core/core_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/core_api.c') diff --git a/src/core/core_api.c b/src/core/core_api.c index d03236a24..d2a8b5651 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -836,7 +836,7 @@ main_notify_handler (void *cls, &h->me, pr, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); if (NULL != h->connects) - h->connects (h->cls, &h->me); + h->connects (h->cls, &pr->peer); break; case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT: if (msize < sizeof (struct ConnectNotifyMessage)) @@ -879,7 +879,7 @@ main_notify_handler (void *cls, &cnm->peer, pr, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); if (NULL != h->connects) - h->connects (h->cls, &cnm->peer); + h->connects (h->cls, &pr->peer); break; case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT: if (msize != sizeof (struct DisconnectNotifyMessage)) -- cgit v1.2.3