aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-16 20:30:52 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-16 20:30:52 +0000
commit6f38c4c15646d121f56c89e399c1f06c5388cc6c (patch)
tree9886ed9e354c89cd3c4702d3718ca5c5ad27b07b /src/core/core_api.c
parent8ab80c69128dceecd2bac137b5643cf8a9d134e4 (diff)
downloadgnunet-6f38c4c15646d121f56c89e399c1f06c5388cc6c.tar.gz
gnunet-6f38c4c15646d121f56c89e399c1f06c5388cc6c.zip
-pass peer identity pointer to clients that will remain allocated
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r--src/core/core_api.c4
1 files changed, 2 insertions, 2 deletions
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,
836 &h->me, pr, 836 &h->me, pr,
837 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); 837 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
838 if (NULL != h->connects) 838 if (NULL != h->connects)
839 h->connects (h->cls, &h->me); 839 h->connects (h->cls, &pr->peer);
840 break; 840 break;
841 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT: 841 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT:
842 if (msize < sizeof (struct ConnectNotifyMessage)) 842 if (msize < sizeof (struct ConnectNotifyMessage))
@@ -879,7 +879,7 @@ main_notify_handler (void *cls,
879 &cnm->peer, pr, 879 &cnm->peer, pr,
880 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); 880 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
881 if (NULL != h->connects) 881 if (NULL != h->connects)
882 h->connects (h->cls, &cnm->peer); 882 h->connects (h->cls, &pr->peer);
883 break; 883 break;
884 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT: 884 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT:
885 if (msize != sizeof (struct DisconnectNotifyMessage)) 885 if (msize != sizeof (struct DisconnectNotifyMessage))