diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-27 11:11:07 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-27 11:25:34 +0200 |
commit | 1d690e37b7b042747d27ccbd5eedf0881e47af57 (patch) | |
tree | fe564d174501febc7689606b67f2d1697ff606fd /source3 | |
parent | f762886687492e3b2dfeefb22fcd82bd6c662baf (diff) | |
download | samba-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')
-rw-r--r-- | source3/rpc_server/lsa/srv_lsa_nt.c | 2 |
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) { |