Initialize readbytes in BIO_gets()
authortb <tb@openbsd.org>
Mon, 15 Aug 2022 10:48:45 +0000 (10:48 +0000)
committertb <tb@openbsd.org>
Mon, 15 Aug 2022 10:48:45 +0000 (10:48 +0000)
commite630eac6035e2df5e9a7bb627d0c36fcb6a68023
treee71c1b8cbb7416959b0335b03a3c8b00c9c8a02d
parent1b3527dfd5e77173a43e4ffe1a82cb048519a5b8
Initialize readbytes in BIO_gets()

If the bgets() callback returns <= 0, we currently rely on the user
provided callback to set readbytes, which isn't ideal. This also
matches what's done in BIO_read() and BIO_write().

ok jsing
lib/libcrypto/bio/bio_lib.c