summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 11:11:07 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 11:25:34 +0200
commit1d690e37b7b042747d27ccbd5eedf0881e47af57 (patch)
treefe564d174501febc7689606b67f2d1697ff606fd /source3/rpc_server
parentf762886687492e3b2dfeefb22fcd82bd6c662baf (diff)
downloadsamba-1d690e37b7b042747d27ccbd5eedf0881e47af57.tar.gz
samba-1d690e37b7b042747d27ccbd5eedf0881e47af57.tar.bz2
samba-1d690e37b7b042747d27ccbd5eedf0881e47af57.zip
s3: Fix Coverity ID 2327: FORWARD_NULL
Make check_ft_info robust against an invalid type. Günther, please check!
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/lsa/srv_lsa_nt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c
index be8747b4d2..01e4a644b5 100644
--- a/source3/rpc_server/lsa/srv_lsa_nt.c
+++ b/source3/rpc_server/lsa/srv_lsa_nt.c
@@ -3659,6 +3659,8 @@ static NTSTATUS check_ft_info(TALLOC_CTX *mem_ctx,
ex_rule = false;
tname = trec->data.info.dns_name.string;
tlen = trec->data.info.dns_name.size;
+ default:
+ return NT_STATUS_INVALID_PARAMETER;
}
ret = dns_cmp(dns_name, dns_len, tname, tlen);
switch (ret) {