Skip to content

Commit

Permalink
removed dead code
Browse files Browse the repository at this point in the history
Reported by Liviu Chircu

(cherry picked from commit aec22a3)
  • Loading branch information
bogdan-iancu committed Mar 21, 2017
1 parent ca42f51 commit 2751168
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions resolve.c
Expand Up @@ -626,12 +626,9 @@ int check_ip_address(struct ip_addr* ip, str *name,

/* check if name->s is an ipv6 address ref. */
if (ip->af==AF_INET6 &&
( ((len==name->len)&&(strncasecmp(name->s, s, name->len)==0))
||
((len==(name->len-2))&&(name->s[0]=='[')&&
(name->s[name->len-1]==']')&&
(strncasecmp(name->s+1, s, len)==0))
)
((len==(name->len-2))&&(name->s[0]=='[')&&
(name->s[name->len-1]==']')&&
(strncasecmp(name->s+1, s, len)==0))
)
return 0;

Expand Down

0 comments on commit 2751168

Please sign in to comment.