From 23cd7e837a59faa713ba35b6ae44daa3f4e291e2 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 7 Jan 2002 13:16:53 +0000 Subject: [PATCH] fix domain generation for UFN --- libraries/libldap/getdn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ] = '.'; -- 2.39.5