gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 01/03: Ensure peer started callback recvs PeerCont


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 01/03: Ensure peer started callback recvs PeerContext
Date: Sun, 25 Jun 2017 14:05:00 +0200

This is an automated email from the git hooks/post-receive script.

daniel-golle pushed a commit to branch master
in repository gnunet.

commit b3a8a978527538062c141ff6bd2fc28abd880d4f
Author: jah <address@hidden>
AuthorDate: Sun Jun 25 12:47:47 2017 +0100

    Ensure peer started callback recvs PeerContext
---
 src/transport/transport-testing.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/transport/transport-testing.c 
b/src/transport/transport-testing.c
index 53a44f338..2aa6cdbb0 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -413,7 +413,10 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct 
GNUNET_TRANSPORT_TESTING_Handle *tth
   else
     p->cb_cls = p;
   p->start_cb = start_cb;
-  p->start_cb_cls = start_cb_cls;
+  if (NULL != start_cb_cls)
+    p->start_cb_cls = start_cb_cls;
+  else
+    p->start_cb_cls = p;
   GNUNET_CONTAINER_DLL_insert (tth->p_head,
                                tth->p_tail,
                                p);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]