mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
handle embedded '\0' (ITS#6379)
This commit is contained in:
parent
dd2f158b52
commit
9cfa465107
@ -2265,7 +2265,7 @@ postalAddressNormalize(
|
||||
|
||||
p = normalized->bv_val;
|
||||
for ( l = 0; !BER_BVISNULL( &nlines[l] ); l++ ) {
|
||||
p = lutil_strncopy( p, nlines[l].bv_val, nlines[l].bv_len );
|
||||
p = lutil_memcopy( p, nlines[l].bv_val, nlines[l].bv_len );
|
||||
|
||||
*p++ = '$';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user