]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/dn2id.c
Import ITS#3688 fix from HEAD
[openldap] / servers / slapd / back-bdb / dn2id.c
index 312c10e22b98d316f4f2cbc2b89514029ee4baff..f8ebb1a7d6188b4fdc576d3ca252b7a92dcfc9fa 100644 (file)
@@ -1133,7 +1133,7 @@ hdb_dn2idl(
        DBTzero(&cx.data);
 
        hdb_dn2idl_internal(&cx);
-       if ( !BDB_IDL_IS_ZERO( ids ))
+       if ( !BDB_IDL_IS_ZERO( ids ) && !BDB_IDL_IS_RANGE( ids ))
                bdb_idl_sort( ids );
 
        return cx.rc;