diff options
Diffstat (limited to 'crypto/bio/bss_mem.c')
-rw-r--r-- | crypto/bio/bss_mem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/bio/bss_mem.c b/crypto/bio/bss_mem.c index c4e557822e..4fa2cf15a4 100644 --- a/crypto/bio/bss_mem.c +++ b/crypto/bio/bss_mem.c @@ -214,6 +214,7 @@ static long mem_ctrl(BIO *b, int cmd, long num, void *ptr) /* For read only case reset to the start again */ if(b->flags & BIO_FLAGS_MEM_RDONLY) bm->data -= bm->max - bm->length; + bm->length = bm->max; else { memset(bm->data,0,bm->max); bm->length=0; |