Commit f38c8b79 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

ITS#7543 Fix log output "conn=-1 ... ACCEPT"

parent 02b22e7e
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment