mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
do not print -1 as %lu
This commit is contained in:
parent
031991e0b4
commit
af3a65b924
1 changed files with 5 additions and 1 deletions
|
|
@ -625,6 +625,7 @@ connection_destroy( Connection *c )
|
||||||
{
|
{
|
||||||
/* note: connections_mutex should be locked by caller */
|
/* note: connections_mutex should be locked by caller */
|
||||||
ber_socket_t sd;
|
ber_socket_t sd;
|
||||||
|
unsigned long connid;
|
||||||
|
|
||||||
assert( connections != NULL );
|
assert( connections != NULL );
|
||||||
assert( c != NULL );
|
assert( c != NULL );
|
||||||
|
|
@ -632,6 +633,9 @@ connection_destroy( Connection *c )
|
||||||
assert( c->c_conn_state != SLAP_C_INVALID );
|
assert( c->c_conn_state != SLAP_C_INVALID );
|
||||||
assert( LDAP_STAILQ_EMPTY(&c->c_ops) );
|
assert( LDAP_STAILQ_EMPTY(&c->c_ops) );
|
||||||
|
|
||||||
|
/* only for stats (print -1 as "%lu" may give unexpected results ;) */
|
||||||
|
connid = c->c_connid;
|
||||||
|
|
||||||
backend_connection_destroy(c);
|
backend_connection_destroy(c);
|
||||||
|
|
||||||
c->c_protocol = 0;
|
c->c_protocol = 0;
|
||||||
|
|
@ -699,7 +703,7 @@ connection_destroy( Connection *c )
|
||||||
|
|
||||||
Statslog( LDAP_DEBUG_STATS,
|
Statslog( LDAP_DEBUG_STATS,
|
||||||
"conn=%lu fd=%d closed\n",
|
"conn=%lu fd=%d closed\n",
|
||||||
c->c_connid, sd, 0, 0, 0 );
|
connid, sd, 0, 0, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
ber_sockbuf_free( c->c_sb );
|
ber_sockbuf_free( c->c_sb );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue