diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-31 11:01:00 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-31 18:44:06 +0000 |
commit | 8de1d727f18b28f660b6f88b14f307841c4ae6cb (patch) | |
tree | 400137ab21a897ae7b53494d2d54bcf112f49f37 | |
parent | f6cfa866074b64b57d574c94429c8e358974b954 (diff) | |
download | samba-8de1d727f18b28f660b6f88b14f307841c4ae6cb.tar.gz samba-8de1d727f18b28f660b6f88b14f307841c4ae6cb.tar.bz2 samba-8de1d727f18b28f660b6f88b14f307841c4ae6cb.zip |
s4:drsuapi RPC server - fix counter variables
-rw-r--r-- | source4/rpc_server/drsuapi/writespn.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/writespn.c b/source4/rpc_server/drsuapi/writespn.c index 71ff49d509..2e7bd762bf 100644 --- a/source4/rpc_server/drsuapi/writespn.c +++ b/source4/rpc_server/drsuapi/writespn.c @@ -47,7 +47,9 @@ WERROR dcesrv_drsuapi_DsWriteAccountSpn(struct dcesrv_call_state *dce_call, TALL case 1: { struct drsuapi_DsWriteAccountSpnRequest1 *req; struct ldb_message *msg; - int count, i, ret; + uint32_t count; + unsigned int i; + int ret; unsigned spn_count=0; req = &r->in.req->req1; @@ -96,8 +98,9 @@ WERROR dcesrv_drsuapi_DsWriteAccountSpn(struct dcesrv_call_state *dce_call, TALL } /* Apply to database */ - ret = dsdb_modify(b_state->sam_ctx, msg, DSDB_MODIFY_PERMISSIVE); - if (ret != 0) { + ret = dsdb_modify(b_state->sam_ctx, msg, + DSDB_MODIFY_PERMISSIVE); + if (ret != LDB_SUCCESS) { DEBUG(0,("Failed to modify SPNs on %s: %s\n", ldb_dn_get_linearized(msg->dn), ldb_errstring(b_state->sam_ctx))); |