bug#20917: do not propagate IL errors
authorJan Pospíšil <honik@ntc.zcu.cz>
Mon, 30 Apr 2007 19:00:44 +0000 (19:00 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Mon, 30 Apr 2007 19:00:44 +0000 (19:00 +0000)
org.glite.lb.server/src/il_lbproxy.c

index fd85f92..8624da1 100644 (file)
@@ -61,7 +61,12 @@ out:
        if ( event_file ) free(event_file);
 
        if ( !err ) return 0;
-       edg_wll_UpdateError(ctx, 0, "edg_wll_EventSendProxy()");
-       if ( err < 0 ) return 0;
-       return edg_wll_Error(ctx, NULL, NULL);
+       if ( err < 0 ) {
+               /* do not propagate IL errors */
+               edg_wll_ResetError(ctx);
+               return 0;
+       } else {
+               edg_wll_UpdateError(ctx, 0, "edg_wll_EventSendProxy()");
+               return edg_wll_Error(ctx, NULL, NULL);
+       }
 }