diff options
author | jah <jah@zadkiel.plus.com> | 2017-06-25 12:47:47 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2017-06-25 14:04:40 +0200 |
commit | b3a8a978527538062c141ff6bd2fc28abd880d4f (patch) | |
tree | 38ba0bac5b3b468488f4fc159ac19f1db1cc6ceb | |
parent | 40eebf828b9d95453164e8f270068b946d570ee2 (diff) | |
download | gnunet-b3a8a978527538062c141ff6bd2fc28abd880d4f.tar.gz gnunet-b3a8a978527538062c141ff6bd2fc28abd880d4f.zip |
Ensure peer started callback recvs PeerContext
-rw-r--r-- | src/transport/transport-testing.c | 5 |
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 | |||
413 | else | 413 | else |
414 | p->cb_cls = p; | 414 | p->cb_cls = p; |
415 | p->start_cb = start_cb; | 415 | p->start_cb = start_cb; |
416 | p->start_cb_cls = start_cb_cls; | 416 | if (NULL != start_cb_cls) |
417 | p->start_cb_cls = start_cb_cls; | ||
418 | else | ||
419 | p->start_cb_cls = p; | ||
417 | GNUNET_CONTAINER_DLL_insert (tth->p_head, | 420 | GNUNET_CONTAINER_DLL_insert (tth->p_head, |
418 | tth->p_tail, | 421 | tth->p_tail, |
419 | p); | 422 | p); |