summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-09-16 05:52:04 +0000
committerjsing <jsing@openbsd.org>2020-09-16 05:52:04 +0000
commitabd6eeeea8249b717a632ef673aa9a427f35fdab (patch)
tree36c7001587f9bbd525e843184cbf31107a36c1f3 /lib/libssl/ssl_lib.c
parentMake check in x509_verify_ctx_set_max_signatures() consistent with others. (diff)
downloadwireguard-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