summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <>2020-09-16 05:52:04 +0000
committerjsing <>2020-09-16 05:52:04 +0000
commitcdfaa096c0627eb79cb2944893d873d3aa00f2fc (patch)
tree5be57759a85380e498c7d6d164a768c972e9ca1a /src/lib/libssl/ssl_lib.c
parentc77cfc6cbd58d3cb87224ddeeee1ba8d7254bf61 (diff)
downloadopenbsd-cdfaa096c0627eb79cb2944893d873d3aa00f2fc.tar.gz
openbsd-cdfaa096c0627eb79cb2944893d873d3aa00f2fc.tar.bz2
openbsd-cdfaa096c0627eb79cb2944893d873d3aa00f2fc.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 'src/lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions