From f89aa1ead619c6510030f405a507400dee25c681 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Sun, 2 Oct 2005 17:53:13 +0000 Subject: [PATCH] Initialize context properly --- org.glite.lb.proxy/src/lbproxy.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/org.glite.lb.proxy/src/lbproxy.c b/org.glite.lb.proxy/src/lbproxy.c index 398b732..1030e8f 100644 --- a/org.glite.lb.proxy/src/lbproxy.c +++ b/org.glite.lb.proxy/src/lbproxy.c @@ -265,14 +265,15 @@ int main(int argc, char *argv[]) /* Just check the database and let it be. The slaves do the job. */ - /* XXX: InitContextProxy() !!! - * edg_wll_InitContext(&ctx) causes segfault - */ + edg_wll_InitContext(&ctx); + /* XXX: obsolete + * edg_wll_InitContext(&ctx) used to cause segfault if ( !(ctx = (edg_wll_Context) malloc(sizeof(*ctx))) ) { perror("InitContext()"); return -1; } memset(ctx, 0, sizeof(*ctx)); + */ wait_for_open(ctx, dbstring); if (edg_wll_DBCheckVersion(ctx)) { char *et,*ed; -- 1.8.2.3