s4:kcc: Add a NULL check before qsort()
authorAndreas Schneider <asn@samba.org>
Mon, 24 Jul 2017 10:13:50 +0000 (12:13 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 31 Jul 2017 09:31:13 +0000 (11:31 +0200)
commit0309fcfbdad1209eda38cfcd991a8542248a96b6
tree89651c5803fc8bfd71734db396819316bdc40004
parent2a2ba42a66f3fcff07f4e65bda8c5cf8653e15f4
s4:kcc: Add a NULL check before qsort()

This fixes building with GCC 7.1.1

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 314cf608932c21d593afd04769b07435bcd4fc53)
source4/dsdb/kcc/kcc_topology.c