Use size of entries, not size of the pointer.
Reviewed-by: Andy Polyakov <appro@openssl.org> GH: #4410
This commit is contained in:
parent
9b01779cbf
commit
b92d7b62f5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue