Avoid abort() throughout the library, except when preprocessor
[openssl.git] / ssl / s3_srvr.c
index c1895dda88ae04821714669f33d691530fb58519..bb8cfb31e55a149b5a4c618641bc7cb47df336d7 100644 (file)
@@ -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)