From: Zdeněk Salvet Date: Wed, 5 Dec 2007 14:31:10 +0000 (+0000) Subject: Pass errors from credential loading to upper layers properly. X-Git-Tag: glite-lb-client_R_3_1_2_1~11 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=19851e3a95e75363e7b43e1c213d7c18dab9cd62;p=jra1mw.git Pass errors from credential loading to upper layers properly. --- diff --git a/org.glite.lb.client/src/prod_proto.c b/org.glite.lb.client/src/prod_proto.c index 74b126c..a1e0251 100644 --- a/org.glite.lb.client/src/prod_proto.c +++ b/org.glite.lb.client/src/prod_proto.c @@ -268,7 +268,7 @@ int edg_wll_log_connect(edg_wll_Context ctx, int *conn) &ctx->connections->connPool[index].gsiCred, &my_subject_name, &gss_stat); /* give up if unable to acquire prescribed credentials, otherwise go on anonymously */ if (ret && ctx->p_proxy_filename) { - edg_wll_SetErrorGss(ctx, "edg_wll_gss_acquire_cred_gsi(): failed to load GSI credentials", &gss_stat); + answer = edg_wll_SetErrorGss(ctx, "edg_wll_gss_acquire_cred_gsi(): failed to load GSI credentials", &gss_stat); goto edg_wll_log_connect_err; } #ifdef EDG_WLL_LOG_STUB @@ -707,7 +707,7 @@ int edg_wll_log_direct_connect(edg_wll_Context ctx, edg_wll_GssConnection *conn) &cred, &my_subject_name, &gss_stat); /* give up if unable to acquire prescribed credentials, otherwise go on anonymously */ if (ret && ctx->p_proxy_filename) { - edg_wll_SetErrorGss(ctx, "edg_wll_gss_acquire_cred_gsi(): failed to load GSI credentials", &gss_stat); + answer = edg_wll_SetErrorGss(ctx, "edg_wll_gss_acquire_cred_gsi(): failed to load GSI credentials", &gss_stat); goto edg_wll_log_direct_connect_end; } #ifdef EDG_WLL_LOG_STUB