summaryrefslogtreecommitdiff
path: root/src/libimcv/ita/ita_attr_get_settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libimcv/ita/ita_attr_get_settings.c')
-rw-r--r--src/libimcv/ita/ita_attr_get_settings.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libimcv/ita/ita_attr_get_settings.c b/src/libimcv/ita/ita_attr_get_settings.c
index 0695af314..196613153 100644
--- a/src/libimcv/ita/ita_attr_get_settings.c
+++ b/src/libimcv/ita/ita_attr_get_settings.c
@@ -203,7 +203,7 @@ METHOD(ita_attr_get_settings_t, create_enumerator, enumerator_t*,
/**
* Described in header.
*/
-pa_tnc_attr_t *ita_attr_get_settings_create(void)
+pa_tnc_attr_t *ita_attr_get_settings_create(char *name)
{
private_ita_attr_get_settings_t *this;
@@ -227,6 +227,10 @@ pa_tnc_attr_t *ita_attr_get_settings_create(void)
.ref = 1,
);
+ if (name)
+ {
+ add(this, name);
+ }
return &this->public.pa_tnc_attribute;
}