From: Howard Chu Date: Tue, 11 Dec 2001 14:03:18 +0000 (+0000) Subject: Fix ldbm_tool_entry_first, was not byteswapping ID. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~660 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fcce9bb26089325ce045173b92112e3f1724c2ea;p=openldap Fix ldbm_tool_entry_first, was not byteswapping ID. --- 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 );