You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
506 B

Correct key pointer usage in bdb_idl_fetch_key.
Author: Shogo Matsumoto
Resolves: #1356165
diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c
--- a/servers/slapd/back-bdb/idl.c
+++ b/servers/slapd/back-bdb/idl.c
@@ -628,7 +628,7 @@ bdb_idl_fetch_key(
BDB_DISK2ID( j, i );
}
}
- rc = cursor->c_get( cursor, key, &data, flags | DB_NEXT_DUP );
+ rc = cursor->c_get( cursor, kptr, &data, flags | DB_NEXT_DUP );
}
if ( rc == DB_NOTFOUND ) rc = 0;
ids[0] = i - ids;