summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-08-24 18:16:06 +0200
committerGünther Deschner <gd@samba.org>2011-02-16 11:44:04 +0100
commitfbd846f4278d8efb08c1f511c5a9ed32b6cda41c (patch)
treed8d6cdb2c961d40ec17398f7777d31056deee12a /source3
parent72de98228926627673edb99fb83c84f0b835baf5 (diff)
downloadsamba-fbd846f4278d8efb08c1f511c5a9ed32b6cda41c.tar.gz
samba-fbd846f4278d8efb08c1f511c5a9ed32b6cda41c.tar.bz2
samba-fbd846f4278d8efb08c1f511c5a9ed32b6cda41c.zip
s3-lsa: fix lsa_QueryTrustedDomainInfo
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/lsa/srv_lsa_nt.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c
index 6a9d12b652..7bea077146 100644
--- a/source3/rpc_server/lsa/srv_lsa_nt.c
+++ b/source3/rpc_server/lsa/srv_lsa_nt.c
@@ -1876,12 +1876,7 @@ NTSTATUS _lsa_QueryTrustedDomainInfo(struct pipes_struct *p,
case LSA_TRUSTED_DOMAIN_INFO_PASSWORD:
return NT_STATUS_INVALID_INFO_CLASS;
case LSA_TRUSTED_DOMAIN_INFO_BASIC:
- init_lsa_String(&info->info_basic.netbios_name, trust_info->name);
- info->info_basic.sid = dom_sid_dup(info, &trust_info->sid);
- if (!info->info_basic.sid) {
- return NT_STATUS_NO_MEMORY;
- }
- break;
+ return NT_STATUS_INVALID_PARAMETER;
case LSA_TRUSTED_DOMAIN_INFO_INFO_EX:
init_lsa_StringLarge(&info->info_ex.domain_name, trust_info->name);
init_lsa_StringLarge(&info->info_ex.netbios_name, trust_info->name);