From: Pierangelo Masarati Date: Mon, 7 Nov 2005 01:07:59 +0000 (+0000) Subject: fix invalid read X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~72 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3019716578efde3506d88616086cd52892917eaa;p=openldap fix invalid read --- diff --git a/servers/slapd/back-sql/sql-wrap.c b/servers/slapd/back-sql/sql-wrap.c index aaa0a1ac64..e942a17d65 100644 --- a/servers/slapd/back-sql/sql-wrap.c +++ b/servers/slapd/back-sql/sql-wrap.c @@ -257,9 +257,10 @@ static void backsql_close_db_conn( void *v_conn ) { backsql_db_conn *conn = (backsql_db_conn *)v_conn; + unsigned long cid = conn->ldap_cid; Debug( LDAP_DEBUG_TRACE, "==>backsql_close_db_conn(%lu)\n", - conn->ldap_cid, 0, 0 ); + cid, 0, 0 ); /* * Default transact is SQL_ROLLBACK; commit is required only @@ -274,7 +275,7 @@ backsql_close_db_conn( void *v_conn ) ch_free( conn ); Debug( LDAP_DEBUG_TRACE, "<==backsql_close_db_conn(%lu)\n", - conn->ldap_cid, 0, 0 ); + cid, 0, 0 ); } int