a shortcut bypassing expensive computation, so change goto err to
goto done. Bug introduced in last refactoring before commit.
-/* $OpenBSD: bn_bpsw.c,v 1.4 2022/07/29 08:32:20 tb Exp $ */
+/* $OpenBSD: bn_bpsw.c,v 1.5 2022/07/29 08:37:33 tb Exp $ */
/*
* Copyright (c) 2022 Martin Grenouilloux <martin.grenouilloux@lse.epita.fr>
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
goto err;
if (is_perfect_square) {
*is_prime = 0;
- goto err;
+ goto done;
}
/*