From: Jan Pospíšil Date: Sun, 2 Oct 2005 17:53:13 +0000 (+0000) Subject: Initialize context properly X-Git-Tag: gridsite-core_R_1_1_12~52 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=f89aa1ead619c6510030f405a507400dee25c681;p=jra1mw.git Initialize context properly --- 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;