]> git.sur5r.net Git - openldap/commitdiff
fix domain generation for UFN
authorPierangelo Masarati <ando@openldap.org>
Mon, 7 Jan 2002 13:16:53 +0000 (13:16 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 7 Jan 2002 13:16:53 +0000 (13:16 +0000)
libraries/libldap/getdn.c

index 6ded9f1b115fa7658af936ecf799cfc97f0a6a52..ff1d012253506b4543d6d0bb7ce61adbd45bd2ab 100644 (file)
@@ -2233,7 +2233,7 @@ dn2domain( LDAPDN *dn, struct berval *bv, int pos, int *iRDN )
                        l += ava->la_value.bv_len;
 
                } else {
-                       AC_MEMCPY( str + ava->la_value.bv_len + 1, bv->bv_val, l);
+                       AC_MEMCPY( str + ava->la_value.bv_len + 1, bv->bv_val + pos, l);
                        AC_MEMCPY( str, ava->la_value.bv_val, 
                                        ava->la_value.bv_len );
                        str[ ava->la_value.bv_len ] = '.';