From 069bf10d3fd18c646a7d7419f1c102d762b30752 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 19 Apr 2017 18:56:43 +0200 Subject: [PATCH] pki: Reset variable so error handling works properly If we jump to `end` without this we crash (not necessarily visibly) due to a double free and the actual error message is not printed. --- src/pki/commands/issue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pki/commands/issue.c b/src/pki/commands/issue.c index b0399c78b7..e41c56d081 100644 --- a/src/pki/commands/issue.c +++ b/src/pki/commands/issue.c @@ -406,6 +406,7 @@ static int issue() goto end; } public->destroy(public); + public = NULL; if (hex) { -- 2.47.2