dsdb: Fix CID 1433614 Dereference after null check
authorVolker Lendecke <vl@samba.org>
Wed, 28 Mar 2018 12:10:59 +0000 (07:10 -0500)
committerJeremy Allison <jra@samba.org>
Wed, 28 Mar 2018 22:21:54 +0000 (00:21 +0200)
commitbb7da3357388f7cf950455ca4f42cd7d43c3f02b
treec94313d01f2d0681505ee4d6be3faa66f219aca7
parent1b7881ceec755e924c52083188762864d723367c
dsdb: Fix CID 1433614 Dereference after null check

This whole routine assumes module!=NULL, both in the successful as
well as in error cases. So checking for module!=NULL is confusing both
the reader as well as Coverity.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/ldb_modules/partition.c