summaryrefslogtreecommitdiff
path: root/source4/rpc_server/drsuapi
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-11 17:13:28 +1000
committerAndrew Tridgell <tridge@samba.org>2009-09-11 17:13:28 +1000
commit8c58cef875b931cf6655d3b7002ed0a7fe32fe35 (patch)
tree3e8d7d771dfe1c95fd64cec3dba6b9d107056b44 /source4/rpc_server/drsuapi
parent88e2fbaf95da3783e1ba41d55dd2fbd8b792126f (diff)
downloadsamba-8c58cef875b931cf6655d3b7002ed0a7fe32fe35.tar.gz
samba-8c58cef875b931cf6655d3b7002ed0a7fe32fe35.tar.bz2
samba-8c58cef875b931cf6655d3b7002ed0a7fe32fe35.zip
s4-drs: actually call the new drsuapi_add_SPNs() code
An early return here didn't do any good :-)
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r--source4/rpc_server/drsuapi/addentry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/rpc_server/drsuapi/addentry.c b/source4/rpc_server/drsuapi/addentry.c
index ab190e1a79..4ccf14d93a 100644
--- a/source4/rpc_server/drsuapi/addentry.c
+++ b/source4/rpc_server/drsuapi/addentry.c
@@ -105,7 +105,7 @@ static WERROR drsuapi_add_SPNs(struct drsuapi_bind_state *b_state,
el->values[0].length = strlen((char *)el->values[0].data);
el->values[1].data = (uint8_t *)talloc_asprintf(el->values, "ldap/%s/%s",
ntds_guid_str, dom_string);
- el->values[1].length = strlen((char *)el->values[0].data);
+ el->values[1].length = strlen((char *)el->values[1].data);
ret = ldb_modify(b_state->sam_ctx, msg);
if (ret != LDB_SUCCESS) {
@@ -173,7 +173,7 @@ WERROR dcesrv_drsuapi_DsAddEntry(struct dcesrv_call_state *dce_call, TALLOC_CTX
r->out.ctr->ctr3.count = num;
r->out.ctr->ctr3.objects = ids;
- return WERR_OK;
+ break;
default:
return WERR_FOOBAR;
}