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:29:27 +0000 (14:29 +0200)
commit8b7b32921e63c492fa7233d81b11ee4d7ba266de
treeff5c3fcb6f67477a811d3da6fa312755037f33ba
parenta1998897f66858ec7d2d184e98f2be1e46ae2d78
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)
crypto/bio/bss_mem.c
doc/man3/BIO_s_mem.pod
test/bio_memleak_test.c