summaryrefslogtreecommitdiff
path: root/source4/rpc_server/drsuapi
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-07 19:03:13 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-08 19:28:44 +0200
commit38896f3362073680da82259485dc1031e08f4d6c (patch)
treee57753b7e3b9bdd76f032f9073f57a000141bfa7 /source4/rpc_server/drsuapi
parent32a2bbb44b58a8a3da6a6b70d5d21a21c1b68d10 (diff)
downloadsamba-38896f3362073680da82259485dc1031e08f4d6c.tar.gz
samba-38896f3362073680da82259485dc1031e08f4d6c.tar.bz2
samba-38896f3362073680da82259485dc1031e08f4d6c.zip
s4:drsuapi RPC server - "result_site_name" - fix variable denomination
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r--source4/rpc_server/drsuapi/dcesrv_drsuapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
index 0f49a732e0..7db9bfda45 100644
--- a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
+++ b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c
@@ -451,11 +451,11 @@ static WERROR dcesrv_DRSUAPI_REMOVE_DS_DOMAIN(struct dcesrv_call_state *dce_call
}
/* Obtain the site name from a server DN */
-static const char *result_site_name(struct ldb_dn *site_dn)
+static const char *result_site_name(struct ldb_dn *server_dn)
{
/* Format is cn=<NETBIOS name>,cn=Servers,cn=<site>,cn=sites.... */
- const struct ldb_val *val = ldb_dn_get_component_val(site_dn, 2);
- const char *name = ldb_dn_get_component_name(site_dn, 2);
+ const struct ldb_val *val = ldb_dn_get_component_val(server_dn, 2);
+ const char *name = ldb_dn_get_component_name(server_dn, 2);
if (!name || (ldb_attr_cmp(name, "cn") != 0)) {
/* Ensure this matches the format. This gives us a