mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-03 11:42:47 -05:00
Delete the output file in case of error
This commit is contained in:

committed by
Michał Trojnara

parent
e290e03341
commit
ef5047038e
@ -4076,6 +4076,13 @@ int main(int argc, char **argv)
|
||||
ret = 1; /* FAILED */
|
||||
BIO_free_all(hash);
|
||||
BIO_free_all(outdata);
|
||||
if (options.outfile) {
|
||||
#ifdef WIN32
|
||||
_unlink(options.outfile);
|
||||
#else
|
||||
unlink(options.outfile);
|
||||
#endif /* WIN32 */
|
||||
}
|
||||
DO_EXIT_0("Initialization error or unsupported input file type.\n");
|
||||
}
|
||||
if (options.cmd == CMD_VERIFY) {
|
||||
|
Reference in New Issue
Block a user