mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
ITS#9526 slapd-mdb tools: fix cursor init check
This commit is contained in:
parent
7df2a0f394
commit
8f392914ca
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user