mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-05-28 21:24:48 -05:00
Fix leafhash resource leak, CID 1536899
This commit is contained in:
parent
4199310cdf
commit
d2f1b9c035
@ -1328,6 +1328,7 @@ static int verify_leaf_hash(X509 *cert, const char *leafhash)
|
||||
char *hash = strchr(mdid, ':');
|
||||
if (hash == NULL) {
|
||||
printf("\nUnable to parse -require-leaf-hash parameter: %s\n", leafhash);
|
||||
OPENSSL_free(mdid);
|
||||
return 0; /* FAILED */
|
||||
}
|
||||
*hash++ = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user