From: Zdeněk Salvet Date: Tue, 9 May 2006 07:05:10 +0000 (+0000) Subject: Initialize LB context properly (fixes one of causes of bug #15450). X-Git-Tag: glite-lb-proxy_R_1_3_1~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=6dd29855d23078fd356896c603ceef0c4afd6b5a;p=jra1mw.git Initialize LB context properly (fixes one of causes of bug #15450). --- diff --git a/org.glite.lb.proxy/src/lbproxy.c b/org.glite.lb.proxy/src/lbproxy.c index c7d5329..517401b 100644 --- a/org.glite.lb.proxy/src/lbproxy.c +++ b/org.glite.lb.proxy/src/lbproxy.c @@ -351,7 +351,7 @@ int handle_conn(int conn, struct timeval *timeout, void *data) edg_wll_Context ctx; struct timeval conn_start, now; - if ( !(ctx = (edg_wll_Context) calloc(1, sizeof(*ctx))) ) { + if ( edg_wll_InitContext(&ctx) ) { fprintf(stderr, "Couldn't create context"); return -1; }