From 3019716578efde3506d88616086cd52892917eaa Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 7 Nov 2005 01:07:59 +0000 Subject: [PATCH] fix invalid read --- servers/slapd/back-sql/sql-wrap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5