summaryrefslogtreecommitdiff
path: root/source4/rpc_server/samr/dcesrv_samr.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-10 12:19:04 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-10 16:22:07 +0200
commit34b43a8642bd13dfad50a4e2436ccc5814135ce2 (patch)
tree1e5cef06616eb6c65a578ccad19a7dc92c49d4b6 /source4/rpc_server/samr/dcesrv_samr.c
parent305f2c70434ecc244c4c7bcad285e2cfae8f3215 (diff)
downloadsamba-34b43a8642bd13dfad50a4e2436ccc5814135ce2.tar.gz
samba-34b43a8642bd13dfad50a4e2436ccc5814135ce2.tar.bz2
samba-34b43a8642bd13dfad50a4e2436ccc5814135ce2.zip
s4:dcesrv_samr_DeleteAliasMember - add more braces to fit better the coding styles
Diffstat (limited to 'source4/rpc_server/samr/dcesrv_samr.c')
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index 3b1211cb00..fd0d249b96 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -2479,9 +2479,9 @@ static NTSTATUS dcesrv_samr_DeleteAliasMember(struct dcesrv_call_state *dce_call
memberdn = samdb_search_string(d_state->sam_ctx, mem_ctx, NULL,
"distinguishedName", "(objectSid=%s)",
ldap_encode_ndr_dom_sid(mem_ctx, r->in.sid));
-
- if (memberdn == NULL)
+ if (memberdn == NULL) {
return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+ }
mod = ldb_msg_new(mem_ctx);
if (mod == NULL) {
@@ -2492,11 +2492,13 @@ static NTSTATUS dcesrv_samr_DeleteAliasMember(struct dcesrv_call_state *dce_call
ret = samdb_msg_add_delval(d_state->sam_ctx, mem_ctx, mod, "member",
memberdn);
- if (ret != LDB_SUCCESS)
+ if (ret != LDB_SUCCESS) {
return NT_STATUS_UNSUCCESSFUL;
+ }
- if (ldb_modify(a_state->sam_ctx, mod) != LDB_SUCCESS)
+ if (ldb_modify(a_state->sam_ctx, mod) != LDB_SUCCESS) {
return NT_STATUS_UNSUCCESSFUL;
+ }
return NT_STATUS_OK;
}