"" is not a plausible address for addressmaps.

svn:r6299
This commit is contained in:
Roger Dingledine 2006-04-03 00:26:51 +00:00
parent e9dc188efd
commit 7e3a98b489

View File

@ -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;