diff options
author | simon <simon@FreeBSD.org> | 2006-10-01 07:38:44 +0000 |
---|---|---|
committer | simon <simon@FreeBSD.org> | 2006-10-01 07:38:44 +0000 |
commit | 387e65d767783525d46f90e7415169ff0015f809 (patch) | |
tree | ddbe8498869205da709070fe1d40135d495b9326 /crypto/openssl/ssl/d1_pkt.c | |
parent | fb3c70eda88d3175627edc6a3316b4508b3d29c5 (diff) | |
download | FreeBSD-src-387e65d767783525d46f90e7415169ff0015f809.zip FreeBSD-src-387e65d767783525d46f90e7415169ff0015f809.tar.gz |
Vendor import of OpenSSL 0.9.8d.
Diffstat (limited to 'crypto/openssl/ssl/d1_pkt.c')
-rw-r--r-- | crypto/openssl/ssl/d1_pkt.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crypto/openssl/ssl/d1_pkt.c b/crypto/openssl/ssl/d1_pkt.c index be6ee32..f8f4516 100644 --- a/crypto/openssl/ssl/d1_pkt.c +++ b/crypto/openssl/ssl/d1_pkt.c @@ -796,8 +796,14 @@ start: dest = s->d1->alert_fragment; dest_len = &s->d1->alert_fragment_len; } - else /* else it's a CCS message */ - OPENSSL_assert(rr->type == SSL3_RT_CHANGE_CIPHER_SPEC); + /* else it's a CCS message, or it's wrong */ + else if (rr->type != SSL3_RT_CHANGE_CIPHER_SPEC) + { + /* Not certain if this is the right error handling */ + al=SSL_AD_UNEXPECTED_MESSAGE; + SSLerr(SSL_F_DTLS1_READ_BYTES,SSL_R_UNEXPECTED_RECORD); + goto f_err; + } if (dest_maxlen > 0) |