From fcce9bb26089325ce045173b92112e3f1724c2ea Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 11 Dec 2001 14:03:18 +0000 Subject: [PATCH] Fix ldbm_tool_entry_first, was not byteswapping ID. --- servers/slapd/back-ldbm/tools.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/back-ldbm/tools.c b/servers/slapd/back-ldbm/tools.c index 5335b1d719..39303e03be 100644 --- a/servers/slapd/back-ldbm/tools.c +++ b/servers/slapd/back-ldbm/tools.c @@ -91,6 +91,9 @@ ID ldbm_tool_entry_first( } AC_MEMCPY( &id, key.dptr, key.dsize ); +#ifndef WORDS_BIGENDIAN + id = ntohl( id ); +#endif ldbm_datum_free( id2entry->dbc_db, key ); -- 2.39.5