提交 89c9c667 编写于 作者: D Dr. Stephen Henson

Submitted by: Brad Spencer <spencer@jacknife.org>

Reviewed by: steve
上级 347ed3b9
...@@ -837,8 +837,14 @@ start: ...@@ -837,8 +837,14 @@ start:
dest = s->d1->alert_fragment; dest = s->d1->alert_fragment;
dest_len = &s->d1->alert_fragment_len; dest_len = &s->d1->alert_fragment_len;
} }
else /* else it's a CCS message */ /* else it's a CCS message, or it's wrong */
OPENSSL_assert(rr->type == SSL3_RT_CHANGE_CIPHER_SPEC); 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) if (dest_maxlen > 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册