提交 b92d7b62 编写于 作者: K Kurt Roeckx

Use size of entries, not size of the pointer.

Reviewed-by: NAndy Polyakov <appro@openssl.org>
GH: #4410
上级 9b01779c
......@@ -720,7 +720,7 @@ SSL *SSL_new(SSL_CTX *ctx)
s->ext.supportedgroups =
OPENSSL_memdup(ctx->ext.supportedgroups,
ctx->ext.supportedgroups_len
* sizeof(ctx->ext.supportedgroups));
* sizeof(*ctx->ext.supportedgroups));
if (!s->ext.supportedgroups)
goto err;
s->ext.supportedgroups_len = ctx->ext.supportedgroups_len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册