summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-09-26 13:21:04 +0200
committerMichael Adam <obnox@samba.org>2014-09-28 01:32:09 +0200
commit321e948c98b01e344e97a0be22ed79f95feb9697 (patch)
treee91eccb4089d951ce1e8460d960c342c78102e61 /libcli
parentc22564aca8a7e81be11281a4f5d297b850439b26 (diff)
downloadsamba-321e948c98b01e344e97a0be22ed79f95feb9697.tar.gz
libcli: Remove unreachable code in dns_hosts_file.
The count is already checked for 0 above this line so it can never be 0 at this point. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/dns/dns_hosts_file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libcli/dns/dns_hosts_file.c b/libcli/dns/dns_hosts_file.c
index 4b1bc531675..373047765b2 100644
--- a/libcli/dns/dns_hosts_file.c
+++ b/libcli/dns/dns_hosts_file.c
@@ -110,8 +110,6 @@ static bool getdns_hosts_fileent(TALLOC_CTX *ctx, XFILE *fp, char **pp_name, cha
if (next_token_talloc(ctx, &ptr, &next_name, NULL))
++count;
}
- if (count <= 0)
- continue;
if ((strcasecmp(name_type, "A") == 0) ||
(strcasecmp(name_type, "AAAA") == 0))