mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-01-05 00:39:36 +00:00
swtpm_setup: Fix exit code on error to be '1'.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
2fdb7c307b
commit
68ac6478b4
@ -1621,7 +1621,6 @@ int main(int argc, char *argv[])
|
||||
tmpbuffer);
|
||||
|
||||
out:
|
||||
error:
|
||||
if (certsdir && g_rmdir(certsdir) != 0)
|
||||
logerr(gl_LOGFILE, "Could not remove temporary directory for certs: %s\n",
|
||||
strerror(errno));
|
||||
@ -1630,4 +1629,8 @@ error:
|
||||
g_free(gl_LOGFILE);
|
||||
|
||||
exit(ret);
|
||||
|
||||
error:
|
||||
ret = 1;
|
||||
goto out;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user