summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorPeiwei Hu <jlu.hpw@foxmail.com>2021-11-14 17:15:11 +0800
committerTomas Mraz <tomas@openssl.org>2021-11-22 15:21:48 +0100
commit12cdadb9f43e6e989bea7e9384884c5deca340a5 (patch)
tree904d32d7ae6d62a983a0ab6008c03ddf9657c662 /engines
parent8b7c2c77df29de5dc2aae62fe32a8e7ba755ceb0 (diff)
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) (cherry picked from commit 546b9f6b5cf6d0fde60aa37084eec1bb7d0fbc72)
Diffstat (limited to 'engines')
-rw-r--r--engines/e_loader_attic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/e_loader_attic.c b/engines/e_loader_attic.c
index 74f297400b..391ed33d5e 100644
--- a/engines/e_loader_attic.c
+++ b/engines/e_loader_attic.c
@@ -1354,8 +1354,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;
}