projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b01779
)
Use size of entries, not size of the pointer.
author
Kurt Roeckx
<kurt@roeckx.be>
Sat, 23 Sep 2017 14:17:22 +0000
(16:17 +0200)
committer
Kurt Roeckx
<kurt@roeckx.be>
Sat, 23 Sep 2017 15:20:05 +0000
(17:20 +0200)
Reviewed-by: Andy Polyakov <appro@openssl.org>
GH: #4410
ssl/ssl_lib.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_lib.c
b/ssl/ssl_lib.c
index 48ce7c179c580a541264971abb2b4750bfcbb49e..e04feec2cdcd8a94c5290e247d67f5ff5fcf0007 100644
(file)
--- 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;