Loading crypto/bio/bss_mem.c +9 −5 Original line number Diff line number Diff line Loading @@ -210,12 +210,16 @@ 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 { } else { memset(bm->data,0,bm->max); bm->length=0; } Loading Loading
crypto/bio/bss_mem.c +9 −5 Original line number Diff line number Diff line Loading @@ -210,12 +210,16 @@ 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 { } else { memset(bm->data,0,bm->max); bm->length=0; } Loading