diff options
author | Bodo Möller <bodo@openssl.org> | 2002-08-02 11:47:24 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-08-02 11:47:24 +0000 |
commit | 265a9e2c5d3b5328cc9fd23e3683bc7dd87b390a (patch) | |
tree | 19166d1d6cb2a7738546624008be4da41d912c75 /ssl/ssl_asn1.c | |
parent | b0b3b11dbf3754f348758def8f1283b80c69603c (diff) |
get rid of OpenSSLDie
Diffstat (limited to 'ssl/ssl_asn1.c')
-rw-r--r-- | ssl/ssl_asn1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/ssl_asn1.c b/ssl/ssl_asn1.c index 1638c6b525..3723fc2e37 100644 --- a/ssl/ssl_asn1.c +++ b/ssl/ssl_asn1.c @@ -294,10 +294,11 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, unsigned char **pp, i=SSL2_MAX_SSL_SESSION_ID_LENGTH; if (os.length > i) - os.length=i; + os.length = i; + if (os.length > sizeof ret->session_id) /* can't happen */ + os.length = sizeof ret->session_id; ret->session_id_length=os.length; - die(os.length <= sizeof ret->session_id); memcpy(ret->session_id,os.data,os.length); M_ASN1_D2I_get(osp,d2i_ASN1_OCTET_STRING); |