Use freezero() for i2d_SSL_SESSION() - one line of code instead of three.
authorjsing <jsing@openbsd.org>
Mon, 10 Apr 2017 16:47:08 +0000 (16:47 +0000)
committerjsing <jsing@openbsd.org>
Mon, 10 Apr 2017 16:47:08 +0000 (16:47 +0000)
commit84cf321c3f89227084683b36ac8da406996da9da
tree1095afdda8778aa53931b95944c0465a7814c806
parentc3c9ed10683572a12ff0209bf2ace1cafa0104d1
Use freezero() for i2d_SSL_SESSION() - one line of code instead of three.
In this case the memory allocated can also be significant, in which case
freezero() will have less overhead than explicit_bzero() (munmap instead
of touching all of the memory to write zeros).
lib/libssl/ssl_asn1.c