mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
"" is not a plausible address for addressmaps.
svn:r6299
This commit is contained in:
parent
e9dc188efd
commit
7e3a98b489
@ -1722,6 +1722,8 @@ is_plausible_address(const char *name)
|
||||
const char *cp;
|
||||
tor_assert(name);
|
||||
/* We could check better here. */
|
||||
if (!*name)
|
||||
return 0;
|
||||
for (cp=name; *cp; cp++) {
|
||||
if (*cp != '.' && *cp != '-' && !TOR_ISALNUM(*cp))
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user