diff options
author | Günther Deschner <gd@samba.org> | 2008-11-27 01:22:39 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-27 18:28:51 +0100 |
commit | e398eed15a7a94d2a53d3bb865927a9db411008c (patch) | |
tree | 280f0046babe19744957c42108cf3548748ddbd8 | |
parent | d94f3e3db35580af366017e100b2047b96d85a9d (diff) | |
download | samba-e398eed15a7a94d2a53d3bb865927a9db411008c.tar.gz samba-e398eed15a7a94d2a53d3bb865927a9db411008c.tar.bz2 samba-e398eed15a7a94d2a53d3bb865927a9db411008c.zip |
s3-samr: fix return code for invalid name in _samr_LookupDomain.
Guenther
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 3 |
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) { |