From f684dd21437117f530a6d9d2042525c60ba98624 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Salvet?= Date: Wed, 28 May 2008 12:40:48 +0000 Subject: [PATCH] Initialize gss connections to closed (fd=-1). --- org.glite.lb.common/src/connpool.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.glite.lb.common/src/connpool.c b/org.glite.lb.common/src/connpool.c index fb84222..a9bfb6d 100644 --- a/org.glite.lb.common/src/connpool.c +++ b/org.glite.lb.common/src/connpool.c @@ -238,6 +238,7 @@ void edg_wll_poolFree() { /** Allocate memory for arrays within the edg_wll_Connections structure */ edg_wll_Connections* edg_wll_initConnections() { + int i; #ifdef EDG_WLL_CONNPOOL_DEBUG #ifdef GLITE_LB_THREADED @@ -258,6 +259,9 @@ edg_wll_Connections* edg_wll_initConnections() { connectionsHandle.connPool = (edg_wll_ConnPool *) calloc(connectionsHandle.poolSize, sizeof(edg_wll_ConnPool)); + for (i=0; i