s4:kcc: Add a NULL check before qsort()
commite728f9f4e0c4a2a196b87d02f33892cdd0e032c2
authorAndreas Schneider <asn@samba.org>
Thu, 21 Jun 2018 09:11:58 +0000 (21 11:11 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 27 Jun 2018 12:52:13 +0000 (27 14:52 +0200)
treeb1ae3af90affc54d06e179d3b723f932f91fff12
parent84bac589f3d4f8ce7131d374963f275ea80af80b
s4:kcc: Add a NULL check before qsort()

../source4/dsdb/kcc/kcc_topology.c: In function ‘kcctpl_get_all_bridgehead_dcs.constprop’:
../source4/dsdb/kcc/kcc_topology.c:1330:3: error: argument 1 null where non-null expected [-Werror=nonnull]
   qsort(bridgeheads.data, bridgeheads.count,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(v4-7-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-7-test): Wed Jun 27 14:52:13 CEST 2018 on sn-devel-144
source4/dsdb/kcc/kcc_topology.c