Added a new field to the context for VOMS FQANs
authorDaniel Kouřil <kouril@ics.muni.cz>
Mon, 24 Sep 2007 06:45:59 +0000 (06:45 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Mon, 24 Sep 2007 06:45:59 +0000 (06:45 +0000)
org.glite.lb.common/interface/context-int.h
org.glite.lb.common/src/context.c

index 76b6a4a..8e5a105 100644 (file)
@@ -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 
index 3c7a64c..408f4fd 100644 (file)
@@ -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);