mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 03:59:34 -05:00
Fix ITS#1722 - IPv4 addresses also need to be massaged for sasl_server_new.
This commit is contained in:
parent
1dcbb23f5b
commit
17433a8412
1 changed files with 4 additions and 0 deletions
|
|
@ -755,6 +755,8 @@ int slap_sasl_open( Connection *conn )
|
|||
iplocalport = ch_strdup( conn->c_sock_name.bv_val + 3 );
|
||||
/* Convert IPv6 addresses to address;port syntax. */
|
||||
p = strrchr( iplocalport, ' ' );
|
||||
/* Convert IPv4 addresses to address;port syntax. */
|
||||
if ( p != NULL ) p = strchr( iplocalport, ':' );
|
||||
if ( p != NULL ) {
|
||||
*p = ';';
|
||||
}
|
||||
|
|
@ -766,6 +768,8 @@ int slap_sasl_open( Connection *conn )
|
|||
ipremoteport = ch_strdup( conn->c_peer_name.bv_val + 3 );
|
||||
/* Convert IPv6 addresses to address;port syntax. */
|
||||
p = strrchr( ipremoteport, ' ' );
|
||||
/* Convert IPv4 addresses to address;port syntax. */
|
||||
if ( p != NULL ) p = strchr( ipremoteport, ':' );
|
||||
if ( p != NULL ) {
|
||||
*p = ';';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue