From f31067f2fc756831a75245b697a4e3368d6588c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 22 Sep 2008 06:32:11 +0000 Subject: [PATCH] [PATCH] don't try to clean unset P11_SESSION_IN_USE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes abort() From: Guido Günther. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23857 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/ks_p11.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/hx509/ks_p11.c b/lib/hx509/ks_p11.c index d92e23c67..3dff91e87 100644 --- a/lib/hx509/ks_p11.c +++ b/lib/hx509/ks_p11.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004 - 2006 Kungliga Tekniska Högskolan + * Copyright (c) 2004 - 2008 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -454,7 +454,6 @@ p11_get_session(hx509_context context, "Failed to login on slot id %d " "with error: 0x%08x", (int)slot->id, ret); - p11_put_session(p, slot, slot->session); return HX509_PKCS11_LOGIN; } if (slot->pin == NULL) { @@ -463,7 +462,6 @@ p11_get_session(hx509_context context, if (context) hx509_set_error_string(context, 0, ENOMEM, "out of memory"); - p11_put_session(p, slot, slot->session); return ENOMEM; } }