]> git.sur5r.net Git - openldap/commitdiff
Fix ldbm_tool_entry_first, was not byteswapping ID.
authorHoward Chu <hyc@openldap.org>
Tue, 11 Dec 2001 14:03:18 +0000 (14:03 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 11 Dec 2001 14:03:18 +0000 (14:03 +0000)
servers/slapd/back-ldbm/tools.c

index 5335b1d7192e00cd79dd9c6262ba5987db339ad7..39303e03bef4a434a0a8b35b6dab4c437311701e 100644 (file)
@@ -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 );