FIx ITS#3417,3418 bogus string arg handling

This commit is contained in:
Howard Chu 2004-12-03 17:53:07 +00:00
parent 0560a28893
commit 36a3a1d62f

View File

@ -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;
}
}