X-Git-Url: https://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=parsehosts.c;fp=parsehosts.c;h=1e0c65ceceaf5a6517f94074367b88d1e93d6b36;hp=27d378e9a9fa81b8e8f4d0c4ddc054327ed438fe;hb=67120c6224470998a5f772a8e1e3ebda3203aade;hpb=64b2d1255780905c78973df33145c93ee5613c9c diff --git a/parsehosts.c b/parsehosts.c index 27d378e..1e0c65c 100644 --- a/parsehosts.c +++ b/parsehosts.c @@ -126,7 +126,7 @@ void parse_and_append_ip(char *str, struct IP *listhead) { concatenate(ip6prefix,ip6range,ptr); ip6range=ptr; - if_exists(ip, ips, eq(ip->addr,ip6range)); + if_exists(ip, ips, eq(ip->addr,ip6range)); /* check - allocated range must be unique */ else { TheIP(ip6range, FALSE); @@ -149,11 +149,7 @@ void parse_and_append_ip(char *str, struct IP *listhead) { concatenate(ip6prefix,ip6uplink,ptr); ip6uplink=ptr; - if_exists(ip, ips, eq(ip->addr,ip6uplink)); - else - { - TheIP(ip6uplink, FALSE); - } + TheIP(ip6uplink, FALSE); /* always new IP - more IPs in single uplink network */ ip->name = ip6uplink; ip->keyword = defaultkeyword; /* settings for default keyword */ if(lmsid)