Fix unparse in prev commit

This commit is contained in:
Howard Chu 2009-12-08 11:59:29 +00:00
parent 25a4e7806a
commit c79267b88a

View File

@ -1303,7 +1303,10 @@ slap_sb_uri(
{
slap_bindconf *bc = bcp;
if ( unparse ) {
*val = bc->sb_uri;
if ( bc->sb_uri.bv_len >= val->bv_len )
return -1;
val->bv_len = bc->sb_uri.bv_len;
AC_MEMCPY( val->bv_val, bc->sb_uri.bv_val, val->bv_len );
} else {
bc->sb_uri = *val;
#ifdef HAVE_TLS