mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-18 04:44:17 -05:00
ITS#7965 mdb_dn2id
heap corruption due to returning a reference to a local variable
This commit is contained in:
parent
055996fc2e
commit
b0e46fb9f9
1 changed files with 2 additions and 2 deletions
|
|
@ -346,7 +346,7 @@ mdb_dn2id(
|
|||
cursor = mc;
|
||||
} else {
|
||||
rc = mdb_cursor_open( txn, dbi, &cursor );
|
||||
if ( rc ) return rc;
|
||||
if ( rc ) goto done;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
|
|
@ -470,7 +470,7 @@ mdb_dn2sups(
|
|||
key.mv_size = sizeof(ID);
|
||||
|
||||
rc = mdb_cursor_open( txn, dbi, &cursor );
|
||||
if ( rc ) return rc;
|
||||
if ( rc ) goto done;
|
||||
|
||||
for (;;) {
|
||||
key.mv_data = &pid;
|
||||
|
|
|
|||
Loading…
Reference in a new issue