diff options
author | nectar <nectar@FreeBSD.org> | 2002-08-10 01:46:10 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-08-10 01:46:10 +0000 |
commit | c99c2264cb2cf6c4f161218c15b8e9a3072526e5 (patch) | |
tree | 3c9559c80a7fe01c85e2dfbadcb9f84770a7e8e6 /crypto/openssl/ssl/s3_srvr.c | |
parent | c48e8e3d25b5b1f6a1783f1e469b5aff8e6c8e29 (diff) | |
download | FreeBSD-src-c99c2264cb2cf6c4f161218c15b8e9a3072526e5.zip FreeBSD-src-c99c2264cb2cf6c4f161218c15b8e9a3072526e5.tar.gz |
Import of OpenSSL 0.9.6f.
Diffstat (limited to 'crypto/openssl/ssl/s3_srvr.c')
-rw-r--r-- | crypto/openssl/ssl/s3_srvr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/openssl/ssl/s3_srvr.c b/crypto/openssl/ssl/s3_srvr.c index d211fd4..fe1e689 100644 --- a/crypto/openssl/ssl/s3_srvr.c +++ b/crypto/openssl/ssl/s3_srvr.c @@ -949,7 +949,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, SSL_R_INTERNAL_ERROR); + return -1; + } *(p++)=sl; memcpy(p,s->session->session_id,sl); p+=sl; |