From 9032e3909d36b5b6f66a17a78b67df8db7702c68 Mon Sep 17 00:00:00 2001 From: Corentin Chary <cchary@commonit.com> Date: Wed, 17 Feb 2010 10:11:59 +0100 Subject: [PATCH] pkcs11-daemon: display the right socket Signed-off-by: Corentin Chary <cchary@commonit.com> --- gck-rpc-dispatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gck-rpc-dispatch.c b/gck-rpc-dispatch.c index b64c9de..a219a32 100644 --- a/gck-rpc-dispatch.c +++ b/gck-rpc-dispatch.c @@ -867,7 +867,7 @@ static CK_RV rpc_C_Finalize(CallState * cs) for (ds = pkcs11_dispatchers; ds; ds = next) { CallState *c = &ds->cs; - next = ds->next; + next = ds->next; if (c->appid != cs->appid) continue ; @@ -876,7 +876,7 @@ static CK_RV rpc_C_Finalize(CallState * cs) if (c->req && c->req->call_id == GCK_RPC_CALL_C_WaitForSlotEvent) { gck_rpc_log("Sending interuption signal to %d\n", - cs->sock); + ds->socket); if (ds->socket) shutdown(ds->socket, SHUT_RDWR); //pthread_kill(ds->thread, SIGINT); -- GitLab