diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2017-01-24 10:50:21 -0600 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-01-24 17:02:12 +0000 |
commit | f1429b85c5821e55224e5878da9d0fa420a41f71 (patch) | |
tree | 9a25de19f0440f1f8759151408e2707e3b7ab90c /crypto/dh/dh_key.c | |
parent | 52ad5b60e3a1fef12a1a5ea01527a90b8f92a34b (diff) |
Do not overallocate for tmp.ciphers_raw
Well, not as much, at least.
Commit 07afdf3c3ac97af4f2b4eec22a97f7230f8227e0 changed things so
that for SSLv2 format ClientHellos we store the cipher list in the
TLS format, i.e., with two bytes per cipher, to be consistent with
historical behavior.
However, the space allocated for the array still performed the computation
with three bytes per cipher, a needless over-allocation (though a relatively
small one, all things considered).
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2281)
Diffstat (limited to 'crypto/dh/dh_key.c')
0 files changed, 0 insertions, 0 deletions