From: Guus Sliepen <guus@tinc-vpn.org>
Date: Tue, 10 Aug 2021 21:08:52 +0000 (+0200)
Subject: Fix infinite loop on SPTPS errors when running sptps_test in datagram mode.
X-Git-Url: http://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=e65df6619c48b94e6f2b7eee089cf99ebb52f215;p=tinc

Fix infinite loop on SPTPS errors when running sptps_test in datagram mode.
---

diff --git a/src/sptps_test.c b/src/sptps_test.c
index e113a847..131b0f40 100644
--- a/src/sptps_test.c
+++ b/src/sptps_test.c
@@ -744,6 +744,8 @@ static int run_test(int argc, char *argv[]) {
 						ecdsa_free(mykey);
 						ecdsa_free(hiskey);
 						return 1;
+					} else {
+						break;
 					}
 				}