diff options
author | Bodo Möller <bodo@openssl.org> | 2000-09-04 15:34:43 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-09-04 15:34:43 +0000 |
commit | bbb8de0966f0181498a0491f42d8b839778a93e7 (patch) | |
tree | 5a645a6357da154d8a320950a302cdf6f1d7e793 /ssl/s3_srvr.c | |
parent | 5e386163801a248063afbc9e346ab1b098356729 (diff) |
Avoid abort() throughout the library, except when preprocessor
symbols for debugging are defined.
Diffstat (limited to 'ssl/s3_srvr.c')
-rw-r--r-- | ssl/s3_srvr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index c1895dda88..bb8cfb31e5 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -153,7 +153,10 @@ int ssl3_accept(SSL *s) if (cb != NULL) cb(s,SSL_CB_HANDSHAKE_START,1); if ((s->version>>8) != 3) - abort(); + { + SSLerr(SSL_F_SSL3_ACCEPT, SSL_R_INTERNAL_ERROR); + return -1; + } s->type=SSL_ST_ACCEPT; if (s->init_buf == NULL) |