Fix infinite loop on SPTPS errors when running sptps_test in datagram mode.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 10 Aug 2021 21:08:52 +0000 (23:08 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 29 May 2022 16:03:27 +0000 (18:03 +0200)
src/sptps_test.c

index e113a84..131b0f4 100644 (file)
@@ -744,6 +744,8 @@ static int run_test(int argc, char *argv[]) {
                                                ecdsa_free(mykey);
                                                ecdsa_free(hiskey);
                                                return 1;
+                                       } else {
+                                               break;
                                        }
                                }