mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ldb:sort: generalise both-NULL check to equality check
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>
This commit is contained in:
parent
d4e69734c6
commit
531f31df99
@ -125,7 +125,7 @@ static int sort_compare(struct ldb_message **msg1, struct ldb_message **msg2, vo
|
||||
* NULL and empty elements sort at the end (regardless of ac->reverse flag).
|
||||
* NULL elements come after empty ones.
|
||||
*/
|
||||
if (el1 == NULL && el2 == NULL) {
|
||||
if (el1 == el2) {
|
||||
return 0;
|
||||
}
|
||||
if (el1 == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user