From b3a8a978527538062c141ff6bd2fc28abd880d4f Mon Sep 17 00:00:00 2001 From: jah Date: Sun, 25 Jun 2017 12:47:47 +0100 Subject: [PATCH] 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); -- 2.25.1