]> git.sur5r.net Git - openldap/commitdiff
e_name.bv_len stuff in entry_decode
authorHoward Chu <hyc@openldap.org>
Mon, 24 Dec 2001 17:37:22 +0000 (17:37 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 24 Dec 2001 17:37:22 +0000 (17:37 +0000)
servers/slapd/entry.c

index 4f01dc5c30b8291be61cdc903960d34c96abe8f0..a0acd7a33f8a2d63d8fae94ce6f9e5e8ee22498a 100644 (file)
@@ -598,10 +598,12 @@ int entry_decode(struct berval *bv, Entry **e)
        i = entry_getlen(&ptr);
        x = ch_malloc(i);
        i = entry_getlen(&ptr);
-       x->e_dn = ptr;
+       x->e_name.bv_val = ptr;
+       x->e_name.bv_len = i;
        ptr += i+1;
        i = entry_getlen(&ptr);
-       x->e_ndn = ptr;
+       x->e_nname.bv_val = ptr;
+       x->e_nname.bv_len = i;
        ptr += i+1;
 #ifdef NEW_LOGGING
        LDAP_LOG(( "operation", LDAP_LEVEL_DETAIL2,