提交 12635aa0 编写于 作者: M Matt Caswell

Updates to supported_groups following review feedback

Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3395)
上级 de65f7b9
......@@ -908,8 +908,7 @@ int tls_construct_stoc_supported_groups(SSL *s, WPACKET *pkt,
first = 0;
}
if (!WPACKET_put_bytes_u8(pkt, groups[0])
|| !WPACKET_put_bytes_u8(pkt, groups[1])) {
if (!WPACKET_put_bytes_u16(pkt, GET_GROUP_ID(groups, 0))) {
SSLerr(SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_GROUPS,
ERR_R_INTERNAL_ERROR);
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册