ITS#7965 mdb_dn2id

heap corruption due to returning a reference to a local variable
This commit is contained in:
Leo Yuriev 2014-10-14 14:49:25 +04:00 committed by Howard Chu
parent 055996fc2e
commit b0e46fb9f9

View File

@ -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;