From: Andrew Bartlett Date: Tue, 15 Mar 2016 02:09:14 +0000 (+1300) Subject: dsdb: Improve syntax clarity X-Git-Tag: tdb-1.3.10~1007 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2679bdc45b37f4a95bd43d88a5845d7b497e56dd;p=thirdparty%2Fsamba.git dsdb: Improve syntax clarity Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index a112e18e076..0ac2b540fef 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -561,7 +561,8 @@ WERROR dsdb_convert_object_ex(struct ldb_context *ldb, instanceType = ldb_msg_find_attr_as_int(msg, "instanceType", 0); - if (instanceType & INSTANCE_TYPE_IS_NC_HEAD && partition_dn) { + if ((instanceType & INSTANCE_TYPE_IS_NC_HEAD) + && partition_dn != NULL) { int partition_dn_cmp = ldb_dn_compare(partition_dn, msg->dn); if (partition_dn_cmp != 0) { DEBUG(4, ("Remote server advised us of a new partition %s while processing %s, ignoring\n",