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.
This commit is contained in:
Tobias Brunner
2017-04-19 18:56:43 +02:00
parent 0d66b01a81
commit 069bf10d3f
+1
View File
@@ -406,6 +406,7 @@ static int issue()
goto end;
}
public->destroy(public);
public = NULL;
if (hex)
{