hx509: Fix coverity warnings

This commit is contained in:
Nicolas Williams
2022-01-17 17:36:48 -06:00
parent 2e729a9aa2
commit dd71303a2f
7 changed files with 39 additions and 19 deletions

View File

@@ -1566,7 +1566,9 @@ hx509_cms_create_signed(hx509_context context,
sigctx.sd.version = cMSVersion_v3;
der_copy_oid(eContentType, &sigctx.sd.encapContentInfo.eContentType);
ret = der_copy_oid(eContentType, &sigctx.sd.encapContentInfo.eContentType);
if (ret)
goto out;
/**
* Use HX509_CMS_SIGNATURE_DETACHED to create detached signatures.