diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-04-14 15:11:20 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-04-14 18:11:45 +0200 |
commit | 29388829fabd85ac7b3636d6975213c970445bbc (patch) | |
tree | 23031772697132e1a435b48265be89da6295c779 /src | |
parent | 3fe6c0b27e1e37f28b9e0cc745841b23f4ebf2ac (diff) | |
download | strongswan-29388829fabd85ac7b3636d6975213c970445bbc.tar.bz2 strongswan-29388829fabd85ac7b3636d6975213c970445bbc.tar.xz |
Do proper cleanup in error case in pki req.
Diffstat (limited to 'src')
-rw-r--r-- | src/pki/commands/req.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pki/commands/req.c b/src/pki/commands/req.c index d1ca45e1a..087a97b3e 100644 --- a/src/pki/commands/req.c +++ b/src/pki/commands/req.c @@ -85,7 +85,8 @@ static int req() case 'f': if (!get_form(arg, &form, CRED_CERTIFICATE)) { - return command_usage("invalid output format"); + error = "invalid output format"; + goto usage; } continue; case EOF: |