aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-02 23:30:54 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-02 23:30:54 +0000
commite8345bfced697f96fbb885298e464760988d71e4 (patch)
tree4e09651306f7d2a007b3681b92e0c340eebe4d8b /src/or/rendcommon.c
parent25a9bc594f22fc29604b17cb0f7eaab74401db29 (diff)
downloadtor-e8345bfced697f96fbb885298e464760988d71e4.tar.gz
tor-e8345bfced697f96fbb885298e464760988d71e4.zip
refactor; start adding debugging logs to midpoint rend stuff
svn:r1445
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index 3b1d8fc453..ece9c59f2b 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -169,7 +169,9 @@ int rend_valid_service_id(char *query) {
if(strlen(query) != REND_SERVICE_ID_LEN)
return 0;
- /* XXXX also check for bad chars. */
+ if (strspn(query, BASE32_CHARS) != REND_SERVICE_ID_LEN)
+ return 0;
+
return 1;
}