[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] is not a plausible address for addressmaps.
Update of /home2/or/cvsroot/tor/src/common
In directory moria:/home/arma/work/onion/cvs/tor/src/common
Modified Files:
util.c
Log Message:
"" is not a plausible address for addressmaps.
Index: util.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.253
retrieving revision 1.254
diff -u -p -d -r1.253 -r1.254
--- util.c 15 Mar 2006 23:35:55 -0000 1.253
+++ util.c 3 Apr 2006 00:26:51 -0000 1.254
@@ -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;