summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-08-17 11:12:54 +1000
committerAndrew Tridgell <tridge@samba.org>2010-08-17 21:21:50 +1000
commit974279b67de6aa346f961b4546bfa556b4ab7ece (patch)
treef8d8953ded037f1467d3022159ccba517d58997f /source4/dsdb/samdb
parenteed3838b4806cebd986b07bea21b88974b394d2f (diff)
downloadsamba-974279b67de6aa346f961b4546bfa556b4ab7ece.tar.gz
samba-974279b67de6aa346f961b4546bfa556b4ab7ece.tar.bz2
samba-974279b67de6aa346f961b4546bfa556b4ab7ece.zip
s4-dsdb: fixed test for LDB_CONTROL_RODC_DCPROMO_OID
the ldb_msg_add_fmt() call returns LDB_SUCCESS on success
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index 8bb5f3d30d..a7bb0f6db8 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -399,7 +399,7 @@ static int samldb_rodc_add(struct samldb_ctx *ac)
return LDB_ERR_OTHER;
found:
- if ( ! ldb_msg_add_fmt(ac->msg, "msDS-SecondaryKrbTgtNumber", "%u", krbtgt_number)) {
+ if (ldb_msg_add_fmt(ac->msg, "msDS-SecondaryKrbTgtNumber", "%u", krbtgt_number) != LDB_SUCCESS) {
return ldb_operr(ldb);
}