Fix and document BIO_FLAGS_NONCLEAR_RST behavior on memory BIO
authorTomas Mraz <tmraz@fedoraproject.org>
Tue, 18 Jun 2019 14:41:48 +0000 (16:41 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Wed, 19 Jun 2019 12:30:57 +0000 (14:30 +0200)
commitc6991655c4ce4764861dd5bdf64a92be5f54dbb3
tree14e769c64123250479b6be8456f7a77601a1dc85
parentdaa6f2c0bedc3e54f58fd420a217b74b9ddc1c02
Fix and document BIO_FLAGS_NONCLEAR_RST behavior on memory BIO

The BIO_FLAGS_NONCLEAR_RST flag behavior was not properly documented
and it also caused the length to be incorrectly set after the reset
operation.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9179)

(cherry picked from commit 8b7b32921e63c492fa7233d81b11ee4d7ba266de)
crypto/bio/bss_mem.c
doc/man3/BIO_s_mem.pod
test/bio_memleak_test.c