proper cleanup on error
This commit is contained in:
+4
-2
@@ -293,7 +293,8 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
if (!optionsfrom(path, &argc, &argv, optind))
|
if (!optionsfrom(path, &argc, &argv, optind))
|
||||||
{
|
{
|
||||||
exit(1);
|
status = 1;
|
||||||
|
goto end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
@@ -428,7 +429,8 @@ int main(int argc, char **argv)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
DBG1(" integrity test failed");
|
DBG1(" integrity test failed");
|
||||||
exit(3);
|
status = 3;
|
||||||
|
goto end;
|
||||||
}
|
}
|
||||||
#endif /* INTEGRITY_TEST */
|
#endif /* INTEGRITY_TEST */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user