mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
cleanup
This commit is contained in:
parent
e2a3fc3af3
commit
59c40035fd
@ -95,11 +95,11 @@ dnssrv_back_referrals(
|
||||
for( i=0; hosts[i] != NULL; i++) {
|
||||
struct berval url;
|
||||
|
||||
url.bv_len = sizeof("ldap://")-1 + strlen(hosts[i]);
|
||||
url.bv_len = STRLENOF( "ldap://" ) + strlen( hosts[i] );
|
||||
url.bv_val = ch_malloc( url.bv_len + 1 );
|
||||
|
||||
strcpy( url.bv_val, "ldap://" );
|
||||
strcpy( &url.bv_val[sizeof("ldap://")-1], hosts[i] );
|
||||
strcpy( &url.bv_val[STRLENOF( "ldap://" )], hosts[i] );
|
||||
|
||||
if ( ber_bvarray_add( &urls, &url ) < 0 ) {
|
||||
free( url.bv_val );
|
||||
|
Loading…
Reference in New Issue
Block a user