Initialize LB context properly (fixes one of causes of bug #15450).
authorZdeněk Salvet <salvet@ics.muni.cz>
Thu, 18 May 2006 09:35:07 +0000 (09:35 +0000)
committerZdeněk Salvet <salvet@ics.muni.cz>
Thu, 18 May 2006 09:35:07 +0000 (09:35 +0000)
org.glite.lb.proxy/src/lbproxy.c

index cd22a70..ad86851 100644 (file)
@@ -352,7 +352,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;
        }