mirror of
https://github.com/samba-team/samba.git
synced 2025-01-07 17:18:11 +03:00
8f0490150b
Returning 0 on `(name1 == NULL || name2 == NULL)` made NULL equal to
everything, which confuses a sort (consider {A, B, NULL} where A > B,
but A == NULL == B).
The only caller is dnsserver_enumerate_records() which fails if it
finds a NULL in the sorted list. We make the happen more quickly by
sorting NULLs to the front.
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
|
||
---|---|---|
.. | ||
dcerpc_dnsserver.c | ||
dnsdata.c | ||
dnsdb.c | ||
dnsserver.h | ||
dnsutils.c |