From: Kurt Roeckx Date: Sat, 23 Sep 2017 14:17:22 +0000 (+0200) Subject: Use size of entries, not size of the pointer. X-Git-Tag: OpenSSL_1_1_1-pre1~632 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b92d7b62f585357cb88462cc3c8e2685ca646f8f;p=oweals%2Fopenssl.git Use size of entries, not size of the pointer. Reviewed-by: Andy Polyakov GH: #4410 --- 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;