mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 12:39:35 -05:00
Fix unparse in prev commit
This commit is contained in:
parent
25a4e7806a
commit
c79267b88a
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue