From: Peiwei Hu Date: Sun, 14 Nov 2021 09:15:11 +0000 (+0800) Subject: ossl_do_blob_header: fix return check X-Git-Tag: openssl-3.2.0-alpha1~3311 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=546b9f6b5cf6d0fde60aa37084eec1bb7d0fbc72;p=thirdparty%2Fopenssl.git ossl_do_blob_header: fix return check Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17028) --- diff --git a/engines/e_loader_attic.c b/engines/e_loader_attic.c index 59f19d329f8..e675b006a84 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; }