From adc57789d64abe1c865dd2c5db7d1b3c86876a01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Mon, 24 Sep 2007 06:45:59 +0000 Subject: [PATCH] Added a new field to the context for VOMS FQANs --- org.glite.lb.common/interface/context-int.h | 2 ++ org.glite.lb.common/src/context.c | 7 +++++++ 2 files changed, 9 insertions(+) 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); -- 1.8.2.3