proper cleanup on error

This commit is contained in:
Martin Willi
2007-10-03 15:07:46 +00:00
parent 6a8e7381d0
commit 99670c3714
+4 -2
View File
@@ -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 */