1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/lib/ldb/common
Douglas Bagnall f61aabdb1a ldb:dn: make ldb_dn_compare() self-consistent
We were returning -1 in all these cases:

   ldb_dn_compare(dn, NULL);
   ldb_dn_compare(NULL, dn);
   ldb_dn_compare(NULL, NULL);

which would give strange results in sort, where this is often used.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15625

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 5fe488d515)
2024-06-10 13:24:16 +00:00
..
attrib_handlers.c ldb:attrib_handlers: ldb_comparison_binary uses NUMERIC_CMP() 2024-06-10 13:24:16 +00:00
ldb_attributes.c ldb_tdb: Read from @INDEXLIST or an override if we are using a GUID index 2017-09-22 21:20:23 +02:00
ldb_controls.c lib:ldb: Fix typo 2023-03-03 01:07:36 +00:00
ldb_debug.c lib/ldb: Do not vasprintf() the tevent debug messages that will not be shown 2012-08-09 20:14:23 +10:00
ldb_dn.c ldb:dn: make ldb_dn_compare() self-consistent 2024-06-10 13:24:16 +00:00
ldb_ldif.c lib:ldb: do not offset against NULL pointer in ldb_ldif_read() 2023-05-09 01:59:32 +00:00
ldb_match.c CVE-2023-0614 ldb: Filter on search base before redacting message 2023-04-05 02:10:35 +00:00
ldb_modules.c ldb: Fix code spelling 2023-10-25 22:23:37 +00:00
ldb_msg.c ldb: reduce non-transitive comparisons in ldb_msg_element_compare() 2024-06-10 13:24:16 +00:00
ldb_options.c ldb: Add new internal helper function ldb_options_get() 2019-07-04 10:02:23 +00:00
ldb_pack.c ldb: Avoid undefined pointer arithmetic 2023-04-12 13:52:31 +00:00
ldb_parse.c ldb: Use correct member of union 2023-04-05 02:10:35 +00:00
ldb_utf8.c lib:ldb: Use ldb_ascii_toupper() for case folding 2022-12-23 13:23:29 +00:00
ldb.c ldb: Fix code spelling 2023-09-11 02:42:41 +00:00
qsort.c ldb: avoid out of bounds read and write in ldb_qsort() 2024-06-10 13:24:16 +00:00