]> git.ipfire.org Git - thirdparty/samba.git/commit
ldb: avoid NULL deref in ldb_db_compare
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 26 Apr 2024 03:24:47 +0000 (15:24 +1200)
committerJule Anger <janger@samba.org>
Mon, 10 Jun 2024 13:25:17 +0000 (13:25 +0000)
commit92daa0a7801f70515e429520ba894423e6a35535
treec078eddc8d57e01b5b38380f444860620aa58972
parentca905ccbf1e426dd04debb14c10e40db4ee4e42f
ldb: avoid NULL deref in ldb_db_compare

This also sorts NULLs after invalid DNs, which matches the comment
above.

CID 1596622.
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 af7654331fb6a2d9cc41cf5bdffa74c81ff4ffee)
lib/ldb/common/ldb_dn.c