diff options
author | Bodo Möller <bodo@openssl.org> | 2002-08-02 11:48:15 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-08-02 11:48:15 +0000 |
commit | 5574e0ed417c9a09487a270fec3df34d3094f5c6 (patch) | |
tree | ae3a9a39081ea1b5a01482dd15f6f8b259fa93e9 /ssl/s3_srvr.c | |
parent | 042e57d5628244b121836881c433b6fa2b6f1697 (diff) |
get rid of OpenSSLDie
Diffstat (limited to 'ssl/s3_srvr.c')
-rw-r--r-- | ssl/s3_srvr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 827fd125ee..20d716fb1b 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -965,7 +965,11 @@ static int ssl3_send_server_hello(SSL *s) s->session->session_id_length=0; sl=s->session->session_id_length; - die(sl <= sizeof s->session->session_id); + if (sl > sizeof s->session->session_id) + { + SSLerr(SSL_F_SSL3_SEND_SERVER_HELLO, ERR_R_INTERNAL_ERROR); + return -1; + } *(p++)=sl; memcpy(p,s->session->session_id,sl); p+=sl; |