Skip to content

Commit

Permalink
I decided to go with the slightly simpler logic Thorild Selen suggested
Browse files Browse the repository at this point in the history
in a subsequent email.
  • Loading branch information
Wayne Davison committed Jul 7, 2003
1 parent 32f60a6 commit 7da9a16
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions access.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ static int match_address(char *addr, char *tok)
/* Fail quietly if tok is a hostname (not an address) */
if (strspn(tok, "./0123456789") != len
#ifdef INET6
&& strspn(tok, "/0123456789:ABCDEFabcdef") != len
&& !strchr(tok, '%')
&& !strchr(tok, ':')
#endif
) return 0;

Expand Down

0 comments on commit 7da9a16

Please sign in to comment.