diff options
Diffstat (limited to 'src/lib/libssl/s3_clnt.c')
-rw-r--r-- | src/lib/libssl/s3_clnt.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index 2b58482484..27df7a5a64 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
@@ -117,7 +117,6 @@ | |||
117 | #include <openssl/objects.h> | 117 | #include <openssl/objects.h> |
118 | #include <openssl/evp.h> | 118 | #include <openssl/evp.h> |
119 | #include <openssl/md5.h> | 119 | #include <openssl/md5.h> |
120 | #include "cryptlib.h" | ||
121 | 120 | ||
122 | static SSL_METHOD *ssl3_get_client_method(int ver); | 121 | static SSL_METHOD *ssl3_get_client_method(int ver); |
123 | static int ssl3_client_hello(SSL *s); | 122 | static int ssl3_client_hello(SSL *s); |
@@ -546,11 +545,7 @@ static int ssl3_client_hello(SSL *s) | |||
546 | *(p++)=i; | 545 | *(p++)=i; |
547 | if (i != 0) | 546 | if (i != 0) |
548 | { | 547 | { |
549 | if (i > sizeof s->session->session_id) | 548 | die(i <= sizeof s->session->session_id); |
550 | { | ||
551 | SSLerr(SSL_F_SSL3_CLIENT_HELLO, ERR_R_INTERNAL_ERROR); | ||
552 | goto err; | ||
553 | } | ||
554 | memcpy(p,s->session->session_id,i); | 549 | memcpy(p,s->session->session_id,i); |
555 | p+=i; | 550 | p+=i; |
556 | } | 551 | } |
@@ -1602,11 +1597,7 @@ static int ssl3_send_client_key_exchange(SSL *s) | |||
1602 | SSL_MAX_MASTER_KEY_LENGTH); | 1597 | SSL_MAX_MASTER_KEY_LENGTH); |
1603 | EVP_EncryptFinal_ex(&ciph_ctx,&(epms[outl]),&padl); | 1598 | EVP_EncryptFinal_ex(&ciph_ctx,&(epms[outl]),&padl); |
1604 | outl += padl; | 1599 | outl += padl; |
1605 | if (outl > sizeof epms) | 1600 | die(outl <= sizeof epms); |
1606 | { | ||
1607 | SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE, ERR_R_INTERNAL_ERROR); | ||
1608 | goto err; | ||
1609 | } | ||
1610 | EVP_CIPHER_CTX_cleanup(&ciph_ctx); | 1601 | EVP_CIPHER_CTX_cleanup(&ciph_ctx); |
1611 | 1602 | ||
1612 | /* KerberosWrapper.EncryptedPreMasterSecret */ | 1603 | /* KerberosWrapper.EncryptedPreMasterSecret */ |