From 8816e50ed708f10fd94c77f1e2ac9a1f9bc2e5dc Mon Sep 17 00:00:00 2001 From: "zugz (tox)" Date: Sun, 26 Apr 2020 00:00:00 +0000 Subject: Skip invalid TCP relays and DHT nodes when loading save data --- auto_tests/save_compatibility_test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'auto_tests') diff --git a/auto_tests/save_compatibility_test.c b/auto_tests/save_compatibility_test.c index a32015b4..fffe2f6e 100644 --- a/auto_tests/save_compatibility_test.c +++ b/auto_tests/save_compatibility_test.c @@ -124,6 +124,9 @@ static void test_save_compatibility(const char *save_path) ck_assert_msg(strncmp(tox_id_str, EXPECTED_TOX_ID, TOX_ADDRESS_SIZE * 2) == 0, "tox ids do not match, expected %s got %s", EXPECTED_TOX_ID, tox_id_str); + /* Giving the tox a chance to error on iterate due to corrupted loaded structures */ + tox_iterate(tox, nullptr); + tox_kill(tox); } -- cgit v1.2.3