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:
frankmorgner
2011-05-20 08:23:10 +00:00
parent 5cfe7d0443
commit e378d28e21

View File

@@ -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);