mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08: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
@ -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 New Issue
Block a user