From: Pierangelo Masarati Date: Mon, 7 Jan 2002 13:16:53 +0000 (+0000) Subject: fix domain generation for UFN X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~245 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23cd7e837a59faa713ba35b6ae44daa3f4e291e2;p=openldap fix domain generation for UFN --- diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index 6ded9f1b11..ff1d012253 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -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 ] = '.';