From: Jong Hyuk Choi Date: Sat, 13 Sep 2003 00:36:14 +0000 (+0000) Subject: fix in slap_entry2mods() X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~730 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c83f1812efe98bf0cd36ec9bad6316bdbedc2c4d;p=openldap fix in slap_entry2mods() --- diff --git a/servers/slapd/add.c b/servers/slapd/add.c index 79e726be22..ef7684a8e9 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -624,15 +624,14 @@ slap_entry2mods( mod->sml_nvalues[count].bv_val = 0; mod->sml_nvalues[count].bv_len = 0; - mod->sml_desc = NULL; - slap_bv2ad(&mod->sml_type, &mod->sml_desc, text); + mod->sml_desc = a_new_desc; mod->sml_next =NULL; *modtail = mod; modtail = &mod->sml_next; a_new = a_new->a_next; } - mods = &modhead; + *mods = modhead; return LDAP_SUCCESS; }