libcli: Remove unreachable code in dns_hosts_file.
authorAndreas Schneider <asn@samba.org>
Fri, 26 Sep 2014 11:21:04 +0000 (13:21 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 27 Sep 2014 23:32:09 +0000 (01:32 +0200)
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>
libcli/dns/dns_hosts_file.c

index 4b1bc531675c3bbac1e0da2f2104e08d2eec6f7b..373047765b2deb864da10515a6b5fb8f5856f323 100644 (file)
@@ -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))