mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-19 14:30:57 +08:00
apparently accept() doesn't fill the sun_path field of the peer socket; hack it
This commit is contained in:
parent
58c637479d
commit
2387d2aff8
@ -1660,6 +1660,14 @@ slapd_daemon_task(
|
||||
switch ( from.sa_addr.sa_family ) {
|
||||
# ifdef LDAP_PF_LOCAL
|
||||
case AF_LOCAL:
|
||||
/* FIXME: apparently accept doesn't fill
|
||||
* the sun_path sun_path member */
|
||||
if ( from.sa_un_addr.sun_path[0] == '\0' ) {
|
||||
AC_MEMCPY( from.sa_un_addr.sun_path,
|
||||
slap_listeners[l]->sl_sa.sa_un_addr.sun_path,
|
||||
sizeof( from.sa_un_addr.sun_path ) );
|
||||
}
|
||||
|
||||
sprintf( peername, "PATH=%s", from.sa_un_addr.sun_path );
|
||||
ssf = LDAP_PVT_SASL_LOCAL_SSF;
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user