Skip to content
Snippets Groups Projects
Commit 07fa9247 authored by Leonid Yuriev's avatar Leonid Yuriev Committed by Quanah Gibson-Mount
Browse files

ITS#7965 mdb_dn2id

heap corruption due to returning a reference to a local variable
parent 0b56eb40
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment