mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-20 22:03:45 -05:00
ITS#7543 Fix log output "conn=-1 ... ACCEPT"
This commit is contained in:
parent
02b22e7e59
commit
f38c8b79d4
2 changed files with 5 additions and 6 deletions
|
|
@ -574,6 +574,11 @@ Connection * connection_init(
|
|||
backend_connection_init(c);
|
||||
ldap_pvt_thread_mutex_unlock( &c->c_mutex );
|
||||
|
||||
if ( !(flags & CONN_IS_UDP ))
|
||||
Statslog( LDAP_DEBUG_STATS,
|
||||
"conn=%ld fd=%ld ACCEPT from %s (%s)\n",
|
||||
id, (long) s, peername, listener->sl_name.bv_val, 0 );
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2073,14 +2073,8 @@ slap_listener(
|
|||
"daemon: connection_init(%ld, %s, %s) failed.\n",
|
||||
(long) sfd, peername, sl->sl_name.bv_val );
|
||||
slapd_close(sfd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Statslog( LDAP_DEBUG_STATS,
|
||||
"conn=%ld fd=%ld ACCEPT from %s (%s)\n",
|
||||
c->c_connid, (long) sfd, peername, sl->sl_name.bv_val,
|
||||
0 );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue