aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-04-14 15:09:30 +0200
committerTobias Brunner <tobias@strongswan.org>2011-04-14 18:11:44 +0200
commit3fe6c0b27e1e37f28b9e0cc745841b23f4ebf2ac (patch)
tree756a4d5e201bbff5b07496c2f788632a3f9d5e09 /src
parent809750d72b3133b617da59b2caf943c99d0ddfe4 (diff)
downloadstrongswan-3fe6c0b27e1e37f28b9e0cc745841b23f4ebf2ac.tar.bz2
strongswan-3fe6c0b27e1e37f28b9e0cc745841b23f4ebf2ac.tar.xz
Do proper cleanup in some error cases in pki signcrl.
Diffstat (limited to 'src')
-rw-r--r--src/pki/commands/signcrl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pki/commands/signcrl.c b/src/pki/commands/signcrl.c
index 4b1c12e5c..9a21bd99c 100644
--- a/src/pki/commands/signcrl.c
+++ b/src/pki/commands/signcrl.c
@@ -238,7 +238,8 @@ static int sign_crl()
}
else
{
- return command_usage( "invalid revocation reason");
+ error = "invalid revocation reason";
+ goto usage;
}
continue;
case 'd':
@@ -252,7 +253,8 @@ static int sign_crl()
case 'f':
if (!get_form(arg, &form, CRED_CERTIFICATE))
{
- return command_usage("invalid output format");
+ error = "invalid output format";
+ goto usage;
}
continue;
case EOF: