From e71818c54203dd7c4bb647a6885effa1ead7e18e Mon Sep 17 00:00:00 2001 From: Francesco Giacomini Date: Fri, 24 Jan 2020 14:40:19 +0100 Subject: [PATCH 1/3] do not allocate the option_endpoint_urls list Since the list is not currently used, it's better to not allocate it rather than properly destroy it in pep_destroy(). The field could even be removed, but it's kept there to avoid ABI-incompatibility risks. fix issue #1 --- src/argus/pep.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/argus/pep.c b/src/argus/pep.c index 25f6258..f3c994b 100644 --- a/src/argus/pep.c +++ b/src/argus/pep.c @@ -163,15 +163,7 @@ PEP * pep_initialize(void) { return NULL; } - pep->option_endpoint_urls= pep_llist_create(); - if (pep->option_endpoint_urls == NULL) { - pep_log_error("pep_initialize: endpoint URLs list allocation failed."); - curl_easy_cleanup(pep->curl); - pep_llist_delete(pep->pips); - pep_llist_delete(pep->ohs); - free(pep); - return NULL; - } + pep->option_endpoint_urls= NULL; // not used return pep; } From 5ab8a0c1a960710620cdd07a7d4d8f7e92756409 Mon Sep 17 00:00:00 2001 From: Francesco Giacomini Date: Fri, 24 Jan 2020 14:49:46 +0100 Subject: [PATCH 2/3] version 2.3.1 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8ecc877..1677cc9 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,7 @@ ## # VERSION number -AC_INIT([argus-pep-api-c], [2.3.0], [argus-support@googlegroups.com]) +AC_INIT([argus-pep-api-c], [2.3.1], [argus-support@googlegroups.com]) ## AC_CONFIG_AUX_DIR([project]) From 0241055817467d5dcfcd3af3a7530269010a8597 Mon Sep 17 00:00:00 2001 From: Francesco Giacomini Date: Tue, 28 Jan 2020 14:57:18 +0100 Subject: [PATCH 3/3] update changelog for v. 2.3.1 --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9c91b0b..f029270 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +argus-pep-api-c 2.3.1 +--------------------- +* bug fix: do not allocate the option_endpoint_urls list + argus-pep-api-c 2.3.0 --------------------- * xacml_result_removeobligation(...) function added.