summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/repl
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-29 18:46:40 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-29 20:59:53 +1000
commitde0b902ffaf04d60ef90727d807c9d06a5561d8e (patch)
tree2fff5dcaf45be8d8ede561e66a0c2e1342ff7670 /source4/dsdb/repl
parent9c9df9c8a320741f13e129f768f3df77949e939a (diff)
downloadsamba-de0b902ffaf04d60ef90727d807c9d06a5561d8e.tar.gz
samba-de0b902ffaf04d60ef90727d807c9d06a5561d8e.tar.xz
samba-de0b902ffaf04d60ef90727d807c9d06a5561d8e.zip
s4-repl: Use NULL for pointer test when checking for ldb_msg_new() failure
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r--source4/dsdb/repl/replicated_objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c
index 67999df573..2c40159677 100644
--- a/source4/dsdb/repl/replicated_objects.c
+++ b/source4/dsdb/repl/replicated_objects.c
@@ -654,7 +654,7 @@ WERROR dsdb_replicated_objects_commit(struct ldb_context *ldb,
dsdb_make_schema_global(ldb, cur_schema);
}
msg = ldb_msg_new(ldb);
- if (msg == 0) {
+ if (msg == NULL) {
return WERR_NOMEM;
}
msg->dn = NULL;