From 29388829fabd85ac7b3636d6975213c970445bbc Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 14 Apr 2011 15:11:20 +0200 Subject: [PATCH] Do proper cleanup in error case in pki req. --- src/pki/commands/req.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: