mirror of https://github.com/openssl/openssl.git
Update bio_ok.c
CLA: trivial Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13515)
This commit is contained in:
parent
90c046be9c
commit
a614af9553
|
|
@ -204,7 +204,7 @@ static int ok_read(BIO *b, char *out, int outl)
|
|||
/*
|
||||
* copy start of the next block into proper place
|
||||
*/
|
||||
if (ctx->buf_len_save - ctx->buf_off_save > 0) {
|
||||
if (ctx->buf_len_save > ctx->buf_off_save) {
|
||||
ctx->buf_len = ctx->buf_len_save - ctx->buf_off_save;
|
||||
memmove(ctx->buf, &(ctx->buf[ctx->buf_off_save]),
|
||||
ctx->buf_len);
|
||||
|
|
|
|||
Loading…
Reference in New Issue