projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c621c7e
)
Free old store name (if any).
author
Dr. Stephen Henson
<steve@openssl.org>
Sun, 1 Jun 2008 23:45:11 +0000
(23:45 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sun, 1 Jun 2008 23:45:11 +0000
(23:45 +0000)
engines/e_capi.c
patch
|
blob
|
history
diff --git
a/engines/e_capi.c
b/engines/e_capi.c
index cfb9a38585b92b4aed53051bd9cb676e12927a96..dabac92d8a7c4230e3190e72f428d1816a9f3ea4 100644
(file)
--- a/
engines/e_capi.c
+++ b/
engines/e_capi.c
@@
-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;