]> git.sur5r.net Git - openldap/commitdiff
fix in slap_entry2mods()
authorJong Hyuk Choi <jongchoi@openldap.org>
Sat, 13 Sep 2003 00:36:14 +0000 (00:36 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Sat, 13 Sep 2003 00:36:14 +0000 (00:36 +0000)
servers/slapd/add.c

index 79e726be22a3c5447dad51c03d7d870ad328610e..ef7684a8e92b2396f25c356d85b001c4c05b3552 100644 (file)
@@ -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;
 }