From: Bodo Möller Date: Fri, 1 Sep 2000 10:40:37 +0000 (+0000) Subject: Use C syntax, not FORTRAN or whatever that was :-) X-Git-Tag: OpenSSL-engine-0_9_6-beta1~12^2~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ccc265eaa7a0af0e52aab6961ac3ddd9e5a22156;p=oweals%2Fopenssl.git Use C syntax, not FORTRAN or whatever that was :-) --- diff --git a/crypto/bio/bss_mem.c b/crypto/bio/bss_mem.c index 4fa2cf15a4..d4d956c619 100644 --- a/crypto/bio/bss_mem.c +++ b/crypto/bio/bss_mem.c @@ -210,16 +210,20 @@ static long mem_ctrl(BIO *b, int cmd, long num, void *ptr) switch (cmd) { case BIO_CTRL_RESET: - if (bm->data != NULL) { + if (bm->data != NULL) + { /* 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 { + { + bm->data -= bm->max - bm->length; + bm->length = bm->max; + } + else + { memset(bm->data,0,bm->max); bm->length=0; + } } - } break; case BIO_CTRL_EOF: ret=(long)(bm->length == 0);