summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.c
diff options
context:
space:
mode:
authorjah <jah@zadkiel.plus.com>2017-06-25 12:47:47 +0100
committerDaniel Golle <daniel@makrotopia.org>2017-06-25 14:04:40 +0200
commitb3a8a978527538062c141ff6bd2fc28abd880d4f (patch)
tree38ba0bac5b3b468488f4fc159ac19f1db1cc6ceb /src/transport/transport-testing.c
parent40eebf828b9d95453164e8f270068b946d570ee2 (diff)
Ensure peer started callback recvs PeerContext
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r--src/transport/transport-testing.c5
1 files changed, 4 insertions, 1 deletions
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);