Blame SOURCES/openldap-bdb_idl_fetch_key-correct-key-pointer.patch

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