diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 0373b85df8..75976a0337 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -377,8 +377,7 @@ int parse_config_table(ConfigTable *Conf, ConfigArgs *c) { case ARG_STRING: { char *cc = *((char**)Conf[i].arg_item); if(cc) ch_free(cc); /* potential memory leak */ - cc = c->value_string; - /* memcpy(Conf[i].arg_item, &c->value_string, sizeof(void *)); */ + *(char **)Conf[i].arg_item = c->value_string; break; } }