summaryrefslogtreecommitdiff
path: root/source4/rpc_server/lsa
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-26 09:13:30 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-01-26 08:39:47 +0100
commitb7becc0b19f38ddb1fd52f354e8ce13df949471c (patch)
tree40c811780338955ed9cc23a1a0748125df4b263d /source4/rpc_server/lsa
parente203b28777f2d245bf827ccb5725984e31ed7208 (diff)
downloadsamba-b7becc0b19f38ddb1fd52f354e8ce13df949471c.tar.gz
samba-b7becc0b19f38ddb1fd52f354e8ce13df949471c.tar.bz2
samba-b7becc0b19f38ddb1fd52f354e8ce13df949471c.zip
s4-rpc_server: Fix search for existing trust to actually look for the dns name
Found by a eagle-eyed user. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Jan 26 08:39:47 CET 2012 on sn-devel-104
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index 609fb65308..de95b4a7fa 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -983,7 +983,7 @@ static NTSTATUS dcesrv_lsa_CreateTrustedDomain_base(struct dcesrv_call_state *dc
}
if (dns_name) {
- char *dns_encoded = ldb_binary_encode_string(mem_ctx, netbios_name);
+ char *dns_encoded = ldb_binary_encode_string(mem_ctx, dns_name);
char *netbios_encoded = ldb_binary_encode_string(mem_ctx, netbios_name);
/* search for the trusted_domain record */
ret = gendb_search(sam_ldb,