aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-04-03 11:03:24 +0200
committerChristian Grothoff <christian@grothoff.org>2019-04-03 11:03:24 +0200
commita9b7be3aa509f2912b8043fc53eb6820fcddb3e0 (patch)
treefad04c30267fd084a88c966cf98a6e63a51d2fa5
parent3cf5714c94d755fd21c56281f9f43d7ded3b6c02 (diff)
downloadgnunet-a9b7be3aa509f2912b8043fc53eb6820fcddb3e0.tar.gz
gnunet-a9b7be3aa509f2912b8043fc53eb6820fcddb3e0.zip
fix crash on test failure
-rw-r--r--src/gns/test_gns_proxy.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c
index 75fe95617..0bfd84c91 100644
--- a/src/gns/test_gns_proxy.c
+++ b/src/gns/test_gns_proxy.c
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -50,9 +50,9 @@ static int global_ret;
50 50
51static struct MHD_Daemon *mhd; 51static struct MHD_Daemon *mhd;
52 52
53static struct GNUNET_SCHEDULER_Task * mhd_task_id; 53static struct GNUNET_SCHEDULER_Task *mhd_task_id;
54 54
55static struct GNUNET_SCHEDULER_Task * curl_task_id; 55static struct GNUNET_SCHEDULER_Task *curl_task_id;
56 56
57static CURL *curl; 57static CURL *curl;
58 58
@@ -349,6 +349,7 @@ curl_main ()
349static void 349static void
350start_curl (void *cls) 350start_curl (void *cls)
351{ 351{
352 curl_task_id = NULL;
352 GNUNET_asprintf (&url, 353 GNUNET_asprintf (&url,
353 "https://%s:%d/hello_world", 354 "https://%s:%d/hello_world",
354 TEST_DOMAIN, port); 355 TEST_DOMAIN, port);
@@ -391,7 +392,8 @@ commence_testing (void *cls)
391{ 392{
392 curl_task_id = 393 curl_task_id =
393 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, 394 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
394 &start_curl, NULL); 395 &start_curl,
396 NULL);
395} 397}
396 398
397 399
@@ -561,4 +563,4 @@ main (int argc, char *const *argv)
561 return global_ret; 563 return global_ret;
562} 564}
563 565
564/* end of test_gns_vpn.c */ 566/* end of test_gns_proxy.c */