summaryrefslogtreecommitdiff
path: root/source3/rpc_server/lsa
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-08-30 15:57:36 +0200
committerGünther Deschner <gd@samba.org>2011-02-16 11:44:05 +0100
commit7d53893dee24d63914f076f0e352f73aa5046fbd (patch)
treef8fff8f85494b39ce92e53fe2414ed1fe635fcc3 /source3/rpc_server/lsa
parent8fa440c8207966871ecfee1221a207a46ec02f7d (diff)
downloadsamba-7d53893dee24d63914f076f0e352f73aa5046fbd.tar.gz
samba-7d53893dee24d63914f076f0e352f73aa5046fbd.tar.bz2
samba-7d53893dee24d63914f076f0e352f73aa5046fbd.zip
s3-lsa: fix return code of _lsa_QueryTrustedDomainInfoByName()
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_server/lsa')
-rw-r--r--source3/rpc_server/lsa/srv_lsa_nt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c
index aba6e64917..ed9ee8bb6f 100644
--- a/source3/rpc_server/lsa/srv_lsa_nt.c
+++ b/source3/rpc_server/lsa/srv_lsa_nt.c
@@ -2012,6 +2012,9 @@ NTSTATUS _lsa_QueryTrustedDomainInfoByName(struct pipes_struct *p,
status = _lsa_OpenTrustedDomainByName(p, &o);
if (!NT_STATUS_IS_OK(status)) {
+ if (NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_DOMAIN)) {
+ return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+ }
return status;
}