diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2021-11-14 10:15:11 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-11-22 14:42:47 +0100 |
commit | 546b9f6b5cf6d0fde60aa37084eec1bb7d0fbc72 (patch) | |
tree | bdc5cc2141e8f86ff33b7b085186579125bded97 /engines | |
parent | BIO_gets: fix the incomplete return check (diff) | |
download | openssl-546b9f6b5cf6d0fde60aa37084eec1bb7d0fbc72.tar.xz openssl-546b9f6b5cf6d0fde60aa37084eec1bb7d0fbc72.zip |
ossl_do_blob_header: fix return check
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17028)
Diffstat (limited to 'engines')
-rw-r--r-- | engines/e_loader_attic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/e_loader_attic.c b/engines/e_loader_attic.c index 59f19d329f..e675b006a8 100644 --- a/engines/e_loader_attic.c +++ b/engines/e_loader_attic.c @@ -1347,8 +1347,8 @@ static OSSL_STORE_INFO *file_try_read_msblob(BIO *bp, int *matchcount) if (BIO_buffer_peek(bp, peekbuf, sizeof(peekbuf)) <= 0) return 0; - if (!ossl_do_blob_header(&p, sizeof(peekbuf), &magic, &bitlen, - &isdss, &ispub)) + if (ossl_do_blob_header(&p, sizeof(peekbuf), &magic, &bitlen, + &isdss, &ispub) <= 0) return 0; } |