Free old store name (if any).
This commit is contained in:
parent
c621c7e432
commit
953174f46e
1 changed files with 2 additions and 0 deletions
|
@ -265,6 +265,8 @@ static int capi_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void))
|
|||
break;
|
||||
|
||||
case CAPI_CMD_STORE_NAME:
|
||||
if (ctx->storename)
|
||||
OPENSSL_free(ctx->storename);
|
||||
ctx->storename = BUF_strdup(p);
|
||||
CAPI_trace(ctx, "Setting store name to %s\n", p);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue