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:
@@ -406,6 +406,7 @@ static int issue()
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
public->destroy(public);
|
public->destroy(public);
|
||||||
|
public = NULL;
|
||||||
|
|
||||||
if (hex)
|
if (hex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user