diff options
author | Bodo Möller <bodo@openssl.org> | 2008-09-14 13:42:40 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2008-09-14 13:42:40 +0000 |
commit | 36a4a67b2b016b5918c06b8c001cdb94c387c0e2 (patch) | |
tree | 8e54db33ea20191ec387d6fa1d5b02a028685837 /ssl | |
parent | 3413424f0157de3a19ad0b2c21e3585ff1b07c6a (diff) |
Some precautions to avoid potential security-relevant problems.
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_asn1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_asn1.c b/ssl/ssl_asn1.c index 6e14f4d834..0f9a3489dd 100644 --- a/ssl/ssl_asn1.c +++ b/ssl/ssl_asn1.c @@ -353,7 +353,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, memcpy(ret->session_id,os.data,os.length); M_ASN1_D2I_get_x(ASN1_OCTET_STRING,osp,d2i_ASN1_OCTET_STRING); - if (ret->master_key_length > SSL_MAX_MASTER_KEY_LENGTH) + if (os.length > SSL_MAX_MASTER_KEY_LENGTH) ret->master_key_length=SSL_MAX_MASTER_KEY_LENGTH; else ret->master_key_length=os.length; |