summaryrefslogtreecommitdiff
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 14:42:47 +0100
commit546b9f6b5cf6d0fde60aa37084eec1bb7d0fbc72 (patch)
treebdc5cc2141e8f86ff33b7b085186579125bded97 /engines
parent7264068a15e7c4955efa25753430595a45caa16f (diff)
downloadopenssl-new-546b9f6b5cf6d0fde60aa37084eec1bb7d0fbc72.tar.gz
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.c4
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;
}