summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-04 10:40:27 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-04 22:07:24 +0100
commite4b5bce151232b64ec2190f230296c469bd94773 (patch)
treea24f82527664d189864ddf2f28fbf4ec4ddbb322 /source4
parent23810dca45b2df1e54135974845260d94a88d16e (diff)
downloadsamba-e4b5bce151232b64ec2190f230296c469bd94773.tar.gz
samba-e4b5bce151232b64ec2190f230296c469bd94773.tar.bz2
samba-e4b5bce151232b64ec2190f230296c469bd94773.zip
s4:libnet/libnet_site.c - make use of LDB return constants
Reviewed by: Tridge
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet_site.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/libnet/libnet_site.c b/source4/libnet/libnet_site.c
index 5332b047e5..9bfca74a36 100644
--- a/source4/libnet/libnet_site.c
+++ b/source4/libnet/libnet_site.c
@@ -203,19 +203,19 @@ NTSTATUS libnet_JoinSite(struct libnet_context *ctx,
}
rtn = ldb_msg_add_string(msg, "objectClass", "server");
- if (rtn != 0) {
+ if (rtn != LDB_SUCCESS) {
libnet_r->out.error_string = NULL;
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;
}
rtn = ldb_msg_add_string(msg, "systemFlags", "50000000");
- if (rtn != 0) {
+ if (rtn != LDB_SUCCESS) {
libnet_r->out.error_string = NULL;
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;
}
rtn = ldb_msg_add_string(msg, "serverReference", libnet_r->out.account_dn_str);
- if (rtn != 0) {
+ if (rtn != LDB_SUCCESS) {
libnet_r->out.error_string = NULL;
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;
@@ -246,7 +246,7 @@ NTSTATUS libnet_JoinSite(struct libnet_context *ctx,
msg->dn = server_dn;
rtn = ldb_msg_add_string(msg, "serverReference",libnet_r->out.account_dn_str);
- if (rtn != 0) {
+ if (rtn != LDB_SUCCESS) {
libnet_r->out.error_string = NULL;
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;
@@ -259,7 +259,7 @@ NTSTATUS libnet_JoinSite(struct libnet_context *ctx,
}
rtn = ldb_modify(remote_ldb, msg);
- if (rtn != 0) {
+ if (rtn != LDB_SUCCESS) {
libnet_r->out.error_string
= talloc_asprintf(libnet_r,
"Failed to modify server entry %s: %s: %d",
@@ -268,7 +268,7 @@ NTSTATUS libnet_JoinSite(struct libnet_context *ctx,
talloc_free(tmp_ctx);
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
- } else if (rtn != 0) {
+ } else if (rtn != LDB_SUCCESS) {
libnet_r->out.error_string
= talloc_asprintf(libnet_r,
"Failed to add server entry %s: %s: %d",