Updates to supported_groups following review feedback
[openssl.git] / ssl / statem / extensions_srvr.c
index b12505c1f730e1731b753fc856050cfbdfd47068..22d2c4af2d52d037c797212c98e8f5ca834546d4 100644 (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;