diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2017-09-23 16:17:22 +0200 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2017-09-23 17:20:05 +0200 |
commit | b92d7b62f585357cb88462cc3c8e2685ca646f8f (patch) | |
tree | bd27af262e0126fa6dab4bd1643b26a9e838e472 /ssl | |
parent | 9b01779cbf321d23fe45cc7e3abe7a2081ab69d4 (diff) | |
download | openssl-b92d7b62f585357cb88462cc3c8e2685ca646f8f.tar.gz |
Use size of entries, not size of the pointer.
Reviewed-by: Andy Polyakov <appro@openssl.org>
GH: #4410
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 48ce7c179c..e04feec2cd 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -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; |