From: Matt Caswell Date: Mon, 8 May 2017 09:54:38 +0000 (+0100) Subject: Updates to supported_groups following review feedback X-Git-Tag: OpenSSL_1_1_1-pre1~1571 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=12635aa09d8dbf73fc29cd8e7bfe698d9c255ca3 Updates to supported_groups following review feedback Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3395) --- diff --git a/ssl/statem/extensions_srvr.c b/ssl/statem/extensions_srvr.c index b12505c1f7..22d2c4af2d 100644 --- a/ssl/statem/extensions_srvr.c +++ b/ssl/statem/extensions_srvr.c @@ -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;