summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2017-03-04 12:53:14 +0000
committerjsing <jsing@openbsd.org>2017-03-04 12:53:14 +0000
commitb963adf1cb5fa23c45648d2d7c1e9960b4ad6271 (patch)
tree64fc32b24c0aa775994266a04ef86d7e17306629
parentRemove commented out code and fix indentation of surrounding statements. (diff)
downloadwireguard-openbsd-b963adf1cb5fa23c45648d2d7c1e9960b4ad6271.tar.xz
wireguard-openbsd-b963adf1cb5fa23c45648d2d7c1e9960b4ad6271.zip
Treat "ERROR in STARTUP" as an actual error, rather than failing without
exiting non-zero (which has been masking a DTLS related issue). Also make the message consistent with other errors. Spotted by inogochi@
-rw-r--r--regress/lib/libssl/ssl/ssltest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libssl/ssl/ssltest.c b/regress/lib/libssl/ssl/ssltest.c
index 24f79e302c3..59a2bea81a1 100644
--- a/regress/lib/libssl/ssl/ssltest.c
+++ b/regress/lib/libssl/ssl/ssltest.c
@@ -1379,9 +1379,9 @@ doit(SSL *s_ssl, SSL *c_ssl, long count)
}
if (!do_client && !do_server) {
- fprintf(stdout, "ERROR IN STARTUP\n");
+ fprintf(stdout, "ERROR in STARTUP\n");
ERR_print_errors(bio_err);
- break;
+ goto err;
}
if (do_client && !(done & C_DONE)) {