From b92d7b62f585357cb88462cc3c8e2685ca646f8f Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sat, 23 Sep 2017 16:17:22 +0200 Subject: [PATCH] Use size of entries, not size of the pointer. Reviewed-by: Andy Polyakov GH: #4410 --- ssl/ssl_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1