check return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23664 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1515,10 +1515,13 @@ hx509_crl_sign(hx509_context context,
|
|||||||
&c.signatureAlgorithm,
|
&c.signatureAlgorithm,
|
||||||
&c.signatureValue);
|
&c.signatureValue);
|
||||||
free(os->data);
|
free(os->data);
|
||||||
|
if (ret) {
|
||||||
|
hx509_set_error_string(context, 0, ret, "Failed to sign CRL");
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
ASN1_MALLOC_ENCODE(CRLCertificateList, os->data, os->length,
|
ASN1_MALLOC_ENCODE(CRLCertificateList, os->data, os->length,
|
||||||
&c, &size, ret);
|
&c, &size, ret);
|
||||||
free_CRLCertificateList(&c);
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
hx509_set_error_string(context, 0, ret, "failed to encode CRL");
|
hx509_set_error_string(context, 0, ret, "failed to encode CRL");
|
||||||
goto out;
|
goto out;
|
||||||
@@ -1526,6 +1529,8 @@ hx509_crl_sign(hx509_context context,
|
|||||||
if (size != os->length)
|
if (size != os->length)
|
||||||
_hx509_abort("internal ASN.1 encoder error");
|
_hx509_abort("internal ASN.1 encoder error");
|
||||||
|
|
||||||
|
free_CRLCertificateList(&c);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
Reference in New Issue
Block a user