Initialize context properly
authorJan Pospíšil <honik@ntc.zcu.cz>
Sun, 2 Oct 2005 17:53:13 +0000 (17:53 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Sun, 2 Oct 2005 17:53:13 +0000 (17:53 +0000)
org.glite.lb.proxy/src/lbproxy.c

index 398b732..1030e8f 100644 (file)
@@ -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;