Skip to content

Commit 2d532dd

Browse files
committed
Clean up after another round of analyzer execution.
1 parent 3a3a7c2 commit 2d532dd

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

tests/api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,7 @@ static int do_dual_alg_server_certgen(byte **out, char *caKeyFile,
10741074
wc_FreeRsaKey(&caKey);
10751075
wc_FreeRsaKey(&serverKey);
10761076
wc_FreeRng(&rng);
1077+
wc_FreeDecodedCert(&preTBS);
10771078
return outSz;
10781079
}
10791080

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27683,7 +27683,7 @@ static int EncodeName(EncodedName* name, const char* nameStr,
2768327683
}
2768427684

2768527685
#ifdef WOLFSSL_CUSTOM_OID
27686-
if (type == ASN_CUSTOM_NAME) {
27686+
if (ret == 0) && (type == ASN_CUSTOM_NAME) {
2768727687
if (cname == NULL || cname->custom.oidSz == 0) {
2768827688
name->used = 0;
2768927689
return 0;

0 commit comments

Comments
 (0)