From: Howard Chu Date: Fri, 3 Dec 2004 17:53:07 +0000 (+0000) Subject: FIx ITS#3417,3418 bogus string arg handling X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~141 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=36a3a1d62f995904bda4422e70d27d653fd68ba2;p=openldap FIx ITS#3417,3418 bogus string arg handling --- 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; } }