Updates to supported_groups following review feedback

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3395)
This commit is contained in:
Matt Caswell 2017-05-08 10:54:38 +01:00
parent de65f7b93a
commit 12635aa09d

View file

@ -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;