diff --git a/servers/slapd/back-mdb/search.c b/servers/slapd/back-mdb/search.c index 46fb237c29..a79871b74f 100644 --- a/servers/slapd/back-mdb/search.c +++ b/servers/slapd/back-mdb/search.c @@ -962,8 +962,8 @@ notfound: if ( wwctx.flag ) { wwctx.flag = 0; mdb_txn_renew( ltid ); - mdb_cursor_renew( mci ); - mdb_cursor_renew( mcd ); + mdb_cursor_renew( ltid, mci ); + mdb_cursor_renew( ltid, mcd ); } mdb_entry_return( op, e ); @@ -1005,8 +1005,8 @@ notfound: if ( wwctx.flag ) { wwctx.flag = 0; mdb_txn_renew( ltid ); - mdb_cursor_renew( mci ); - mdb_cursor_renew( mcd ); + mdb_cursor_renew( ltid, mci ); + mdb_cursor_renew( ltid, mcd ); } rs->sr_attrs = NULL; rs->sr_entry = NULL;