fixed segfault on cleanup
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@420 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -1579,7 +1579,7 @@ npa_sm_clear_free(const struct sm_ctx *ctx)
|
|||||||
{
|
{
|
||||||
if (ctx) {
|
if (ctx) {
|
||||||
struct npa_sm_ctx *eacsmctx = ctx->priv_data;
|
struct npa_sm_ctx *eacsmctx = ctx->priv_data;
|
||||||
PACE_CTX_clear_free(eacsmctx->ctx);
|
EAC_CTX_clear_free(eacsmctx->ctx);
|
||||||
if (eacsmctx->ssc)
|
if (eacsmctx->ssc)
|
||||||
BN_clear_free(eacsmctx->ssc);
|
BN_clear_free(eacsmctx->ssc);
|
||||||
free(eacsmctx);
|
free(eacsmctx);
|
||||||
|
|||||||
Reference in New Issue
Block a user