aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-10-03 15:07:46 +0000
committerMartin Willi <martin@strongswan.org>2007-10-03 15:07:46 +0000
commit99670c37149075c0a24f286061bafb6cf616b9d6 (patch)
treeb6e7cdf0df1e12b417838f1a09a173d20251d4a5 /src
parent6a8e7381d0fc2f6df83c0d75fe02372a3b35a2b3 (diff)
downloadstrongswan-99670c37149075c0a24f286061bafb6cf616b9d6.tar.bz2
strongswan-99670c37149075c0a24f286061bafb6cf616b9d6.tar.xz
proper cleanup on error
Diffstat (limited to 'src')
-rwxr-xr-xsrc/openac/openac.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openac/openac.c b/src/openac/openac.c
index 2c93487e8..cde6ba3be 100755
--- a/src/openac/openac.c
+++ b/src/openac/openac.c
@@ -293,7 +293,8 @@ int main(int argc, char **argv)
}
if (!optionsfrom(path, &argc, &argv, optind))
{
- exit(1);
+ status = 1;
+ goto end;
}
}
continue;
@@ -428,7 +429,8 @@ int main(int argc, char **argv)
else
{
DBG1(" integrity test failed");
- exit(3);
+ status = 3;
+ goto end;
}
#endif /* INTEGRITY_TEST */