Skip to content
Snippets Groups Projects
Commit 36a3a1d6 authored by Howard Chu's avatar Howard Chu
Browse files

FIx ITS#3417,3418 bogus string arg handling

parent 0560a288
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment