]> git.sur5r.net Git - openldap/commitdiff
FIx ITS#3417,3418 bogus string arg handling
authorHoward Chu <hyc@openldap.org>
Fri, 3 Dec 2004 17:53:07 +0000 (17:53 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 3 Dec 2004 17:53:07 +0000 (17:53 +0000)
servers/slapd/config.c

index 0373b85df8b83b5a58b5510c335858d4449f4aaa..75976a0337903df5f887820c402f94e88412dd2c 100644 (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;
                                }
        }