align with 3.1 fix for #17200
authorAleš Křenek <ljocha@ics.muni.cz>
Mon, 14 Aug 2006 14:15:56 +0000 (14:15 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Mon, 14 Aug 2006 14:15:56 +0000 (14:15 +0000)
org.glite.lb.client/src/connection.c

index 7be04a7..5f78604 100644 (file)
@@ -206,6 +206,8 @@ int edg_wll_open_proxy(edg_wll_Context ctx)
        char    *ed = NULL;
        int     retries = 0;
 
+       edg_wll_ResetError(ctx);
+
        if (ctx->connProxy->conn.sock > -1) {
                // XXX: test path socket here?
                return edg_wll_ResetError(ctx);
@@ -267,7 +269,7 @@ int edg_wll_open_proxy(edg_wll_Context ctx)
                goto err;
        }
 
-       return edg_wll_ResetError(ctx); 
+       return 0;
        
 err:
        /* some error occured; close created connection */