summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-07-16 21:05:11 +0200
committert3sserakt <t3ss@posteo.de>2021-07-16 21:05:11 +0200
commit33830e71f8e80334e0c8cf5527b1f2b20804485e (patch)
treebe8bb3af17046a3e7c77ca6f11639c24e938211d /src/transport
parent71f230fbb6f270f6b501934acadb6f57026c353d (diff)
- started to implement several cmds to start peers^Ctestcase plugin will be started directly from helper, functionality to communicate between master cmd loop and local cmd loop, code compiles, test is not working atm.
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/transport-testing.c4
-rw-r--r--src/transport/transport-testing2.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index a7ee563d7..00c4a08dd 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -463,7 +463,7 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct
GNUNET_free (emsg);
return NULL;
}
- GNUNET_free (emsg);
+
if (GNUNET_OK != GNUNET_TESTING_peer_start (p->peer))
{
LOG (GNUNET_ERROR_TYPE_ERROR,
@@ -508,6 +508,7 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct
cfgname,
emsg);
GNUNET_TRANSPORT_TESTING_stop_peer (p);
+ GNUNET_free (emsg);
return NULL;
}
p->ats = GNUNET_ATS_connectivity_init (p->cfg);
@@ -518,6 +519,7 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct
cfgname,
emsg);
GNUNET_TRANSPORT_TESTING_stop_peer (p);
+ GNUNET_free (emsg);
return NULL;
}
p->ghh = GNUNET_TRANSPORT_hello_get (p->cfg,
diff --git a/src/transport/transport-testing2.c b/src/transport/transport-testing2.c
index 482aaf4d0..6d41ec098 100644
--- a/src/transport/transport-testing2.c
+++ b/src/transport/transport-testing2.c
@@ -478,7 +478,7 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct
GNUNET_free (emsg);
return NULL;
}
- GNUNET_free (emsg);
+
if (GNUNET_OK != GNUNET_TESTING_peer_start (p->peer))
{
LOG (GNUNET_ERROR_TYPE_ERROR,
@@ -520,6 +520,7 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct
cfgname,
emsg);
GNUNET_TRANSPORT_TESTING_stop_peer (p);
+ GNUNET_free (emsg);
return NULL;
}
p->ats = GNUNET_ATS_connectivity_init (p->cfg);
@@ -530,6 +531,7 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct
cfgname,
emsg);
GNUNET_TRANSPORT_TESTING_stop_peer (p);
+ GNUNET_free (emsg);
return NULL;
}
p->ph = GNUNET_PEERSTORE_connect (p->cfg);