diff options
author | 2020-09-16 05:52:04 +0000 | |
---|---|---|
committer | 2020-09-16 05:52:04 +0000 | |
commit | abd6eeeea8249b717a632ef673aa9a427f35fdab (patch) | |
tree | 36c7001587f9bbd525e843184cbf31107a36c1f3 /lib/libssl/ssl_lib.c | |
parent | Make check in x509_verify_ctx_set_max_signatures() consistent with others. (diff) | |
download | wireguard-openbsd-abd6eeeea8249b717a632ef673aa9a427f35fdab.tar.xz wireguard-openbsd-abd6eeeea8249b717a632ef673aa9a427f35fdab.zip |
Avoid memset() before memcpy() for CBB_add_bytes().
CBB_add_bytes() calls CBB_add_space(), which now explicitly zeros memory
to avoid information leaks. However CBB_add_bytes() calls memcpy() for the
same memory region, so the memset() is unnecessary. Avoid this by inlining
part of CBB_add_space() rather than calling it directly.
ok beck@ tb@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions