Fix bug in BIO_f_linebuffer()
authorRichard Levitte <levitte@openssl.org>
Tue, 13 Feb 2018 18:18:46 +0000 (19:18 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 13 Feb 2018 18:24:22 +0000 (19:24 +0100)
commita2019575614c0e9f81223348da360d058ff30883
tree604521eebbadebc4064de8eca02a262ae964a306
parent3493b39d17bc064dcf0e81bceeeb3dff18cb1944
Fix bug in BIO_f_linebuffer()

In BIO_f_linebuffer, this would cause an error:

    BIO_write(bio, "1\n", 1);

I.e. there's a \n just after the part of the string that we currently
ask to get written.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5353)
crypto/bio/bf_lbuf.c