s3: Fix Coverity ID 2327: FORWARD_NULL
authorVolker Lendecke <vl@samba.org>
Sun, 27 Mar 2011 09:11:07 +0000 (11:11 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 27 Mar 2011 09:25:34 +0000 (11:25 +0200)
Make check_ft_info robust against an invalid type.

G√ľnther, please check!

source3/rpc_server/lsa/srv_lsa_nt.c

index be8747b4d2f4a1091abe3c0810abea10559ea7ae..01e4a644b5efcaa4b6b6fa191afb6a833e9b54ab 100644 (file)
@@ -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) {