]> git.sur5r.net Git - openldap/commitdiff
fix previous commit
authorPierangelo Masarati <ando@openldap.org>
Wed, 27 Apr 2005 02:38:55 +0000 (02:38 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 27 Apr 2005 02:38:55 +0000 (02:38 +0000)
libraries/liblber/memory.c

index 5b4089fec2c1cd756cdafb48438e7f3e5f66bff2..904630fd30393328a26464eecf920786fc92a5a8 100644 (file)
@@ -728,6 +728,7 @@ ber_bvreplace_x( struct berval *dst, LDAP_CONST struct berval *src, void *ctx )
        }
 
        AC_MEMCPY( dst->bv_val, src->bv_val, src->bv_len + 1 );
+       dst->bv_len = src->bv_len;
 
        return dst;
 }