From c83f1812efe98bf0cd36ec9bad6316bdbedc2c4d Mon Sep 17 00:00:00 2001 From: Jong Hyuk Choi Date: Sat, 13 Sep 2003 00:36:14 +0000 Subject: [PATCH] fix in slap_entry2mods() --- servers/slapd/add.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.39.5