s4:kcc: Add a NULL check before qsort()
authorAndreas Schneider <asn@samba.org>
Mon, 24 Jul 2017 10:13:50 +0000 (12:13 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 24 Jul 2017 12:50:11 +0000 (14:50 +0200)
commit314cf608932c21d593afd04769b07435bcd4fc53
tree3eaefe77fe4ef956999d1840f084225ea6b28119
parent9d4a9bd3cc6d5031b4cb6120be8d261350a8bdfc
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>
source4/dsdb/kcc/kcc_topology.c