~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to servers/slapd/back-ldap/unbind.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-09-07 13:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090907134110-jsdrvn0atu1fex4m
Tags: upstream-2.4.18
ImportĀ upstreamĀ versionĀ 2.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* unbind.c - ldap backend unbind function */
2
 
/* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/unbind.c,v 1.33.2.5 2009/01/22 00:01:06 kurt Exp $ */
 
2
/* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/unbind.c,v 1.33.2.6 2009/08/26 00:50:19 quanah Exp $ */
3
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
 *
5
5
 * Copyright 1999-2009 The OpenLDAP Foundation.
53
53
#endif /* LDAP_BACK_PRINT_CONNTREE */
54
54
        while ( ( lc = avl_delete( &li->li_conninfo.lai_tree, (caddr_t)&lc_curr, ldap_back_conn_cmp ) ) != NULL )
55
55
        {
 
56
                assert( !LDAP_BACK_PCONN_ISPRIV( lc ) );
56
57
                Debug( LDAP_DEBUG_TRACE,
57
 
                        "=>ldap_back_conn_destroy: destroying conn %ld "
 
58
                        "=>ldap_back_conn_destroy: destroying conn %lu "
58
59
                        "refcnt=%d flags=0x%08x\n",
59
 
                        LDAP_BACK_PCONN_ID( lc ),
60
 
                        lc->lc_refcnt, lc->lc_lcflags );
 
60
                        lc->lc_conn->c_connid, lc->lc_refcnt, lc->lc_lcflags );
61
61
 
62
62
                if ( lc->lc_refcnt > 0 ) {
63
63
                        /* someone else might be accessing the connection;