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

This commit is contained in:
Howard Chu 2021-04-18 17:51:30 +01:00 committed by Quanah Gibson-Mount
parent 49dbdfa424
commit 20af42dfb7

View file

@ -649,6 +649,8 @@ ID mdb_tool_entry_put(
text->bv_val, 0, 0 );
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,