mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
FIx ITS#3417,3418 bogus string arg handling
This commit is contained in:
parent
0560a28893
commit
36a3a1d62f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user