mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
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)
This commit is contained in:
parent
7264068a15
commit
546b9f6b5c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user