Skip to content

Commit

Permalink
Use size of entries, not size of the pointer.
Browse files Browse the repository at this point in the history
Reviewed-by: Andy Polyakov <[email protected]>
GH: openssl#4410
  • Loading branch information
kroeckx committed Sep 23, 2017
1 parent 9b01779 commit b92d7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssl/ssl_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b92d7b6

Please sign in to comment.