File 14000-2984436-bnc591060-Match-startLogging-and-closeLogging-calls.patch of Package sblim-sfcb-sle11-sp1
From ea47a3a0343388d2bc9a004588fa211cf29dbd89 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 21 Apr 2010 12:06:40 +0200
Subject: [PATCH] Match startLogging() and closeLogging() calls
The startLogging and closeLogging calls where unmatched. The former
was called during CIMCEnv creation, the latter during client release.
In case of client connect error, this led to a dangling startLogging
since there was no client to release.
This patch moves the closeLogging() from the client to the CIMCEnv
release.
---
cimcClientSfcbLocal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cimcClientSfcbLocal.c b/cimcClientSfcbLocal.c
index 99c38da..43c2347 100644
--- a/cimcClientSfcbLocal.c
+++ b/cimcClientSfcbLocal.c
@@ -209,7 +209,6 @@ static CMPIStatus releaseClient(Client * mb)
if (cl->connection) CMRelease(cl->connection);
free(cl);
- closeLogging();
return rc;
}
@@ -1619,6 +1618,7 @@ int localConnect(ClientEnv* ce, CMPIStatus *st)
static void* release(ClientEnv* ce)
{
void *lib=ce->hdl;
+ closeLogging();
CONNECT_LOCK();
if (localConnectCount > 0) localConnectCount -= 1;
if (localConnectCount == 0) {
--
1.6.4.2