From: Daniel KouĊ™il Date: Mon, 24 Sep 2007 06:45:59 +0000 (+0000) Subject: Added a new field to the context for VOMS FQANs X-Git-Tag: glite-lb-client_R_3_1_0_1~8 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=adc57789d64abe1c865dd2c5db7d1b3c86876a01;p=jra1mw.git Added a new field to the context for VOMS FQANs --- diff --git a/org.glite.lb.common/interface/context-int.h b/org.glite.lb.common/interface/context-int.h index 76b6a4a..8e5a105 100644 --- a/org.glite.lb.common/interface/context-int.h +++ b/org.glite.lb.common/interface/context-int.h @@ -135,6 +135,8 @@ glite_lb_padded_struct(_edg_wll_Context,120, int use_transactions; int greyjobs; + + char **fqans; /* null-terminated list of peer's VOMS FQANs */ ) /* to be used internally: set, update and and clear the error information in diff --git a/org.glite.lb.common/src/context.c b/org.glite.lb.common/src/context.c index 3c7a64c..408f4fd 100644 --- a/org.glite.lb.common/src/context.c +++ b/org.glite.lb.common/src/context.c @@ -134,6 +134,13 @@ void edg_wll_FreeContext(edg_wll_Context ctx) if (ctx->vomsGroups.len) free_voms_groups(&ctx->vomsGroups); if (ctx->dumpStorage) free(ctx->dumpStorage); if (ctx->purgeStorage) free(ctx->purgeStorage); + if (ctx->fqans) { + char **f; + for (f = ctx->fqans; f && *f; f++) + free(*f); + free(ctx->fqans); + ctx->fqans = NULL; + } edg_wll_FreeParams(ctx);