diff options
author | Martin Willi <martin@strongswan.org> | 2007-10-03 15:07:46 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-10-03 15:07:46 +0000 |
commit | 99670c37149075c0a24f286061bafb6cf616b9d6 (patch) | |
tree | b6e7cdf0df1e12b417838f1a09a173d20251d4a5 /src | |
parent | 6a8e7381d0fc2f6df83c0d75fe02372a3b35a2b3 (diff) | |
download | strongswan-99670c37149075c0a24f286061bafb6cf616b9d6.tar.bz2 strongswan-99670c37149075c0a24f286061bafb6cf616b9d6.tar.xz |
proper cleanup on error
Diffstat (limited to 'src')
-rwxr-xr-x | src/openac/openac.c | 6 |
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 */ |