summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-27 01:22:39 +0100
committerGünther Deschner <gd@samba.org>2008-11-27 18:28:51 +0100
commite398eed15a7a94d2a53d3bb865927a9db411008c (patch)
tree280f0046babe19744957c42108cf3548748ddbd8 /source3/rpc_server
parentd94f3e3db35580af366017e100b2047b96d85a9d (diff)
downloadsamba-e398eed15a7a94d2a53d3bb865927a9db411008c.tar.gz
samba-e398eed15a7a94d2a53d3bb865927a9db411008c.tar.bz2
samba-e398eed15a7a94d2a53d3bb865927a9db411008c.zip
s3-samr: fix return code for invalid name in _samr_LookupDomain.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr_nt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 71eec0a59c..537d58fac1 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -3650,6 +3650,9 @@ NTSTATUS _samr_LookupDomain(pipes_struct *p,
}
domain_name = r->in.domain_name->string;
+ if (!domain_name) {
+ return NT_STATUS_INVALID_PARAMETER;
+ }
sid = TALLOC_ZERO_P(p->mem_ctx, struct dom_sid2);
if (!sid) {