ITS#9526 slapd-mdb tools: fix cursor init check

This commit is contained in:
Howard Chu 2021-04-18 17:51:30 +01:00
parent 7df2a0f394
commit 8f392914ca

View File

@ -675,6 +675,8 @@ ID mdb_tool_entry_put(
text->bv_val );
return NOID;
}
}
if ( !idcursor ) {
rc = mdb_cursor_open( mdb_tool_txn, mdb->mi_id2entry, &idcursor );
if( rc != 0 ) {
snprintf( text->bv_val, text->bv_len,