diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-08-30 16:14:29 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-08-30 16:14:29 +0000 |
commit | 7df1c720f60ad3813cc88607c4520da031e41e88 (patch) | |
tree | c45d2b02b837f2b503807989a4889a4ce7c5a0ad /crypto/bio | |
parent | b3756cf0e9622a4bbda5e4c417248255ba9daaf2 (diff) |
Fix typo in i2d_ASN1_ENUMERATED
Fix bug in read only memory BIOs so BIO_reset() works.
Add sign and verify options to dgst utility, need
to update docs.
Diffstat (limited to 'crypto/bio')
-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; |