struct {
const char *name;
const char **ptr;
- bool reset_assoc_group;
#define _SPECIAL(x) { .name = #x, .ptr = &b->x, }
} specials[] = {
_SPECIAL(host),
- {
- .name = "endpoint",
- .ptr = &b->endpoint,
- .reset_assoc_group = true
- },
+ _SPECIAL(endpoint),
_SPECIAL(target_hostname),
_SPECIAL(target_principal),
#undef _SPECIAL
if (value == NULL) {
talloc_free(tmp);
*specials[i].ptr = NULL;
- if (specials[i].reset_assoc_group) {
- b->assoc_group_id = 0;
- }
return NT_STATUS_OK;
}
}
talloc_free(tmp);
- if (specials[i].reset_assoc_group) {
- b->assoc_group_id = 0;
- }
return NT_STATUS_OK;
}