diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-01-11 16:02:39 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-01-11 16:02:39 +0000 |
commit | c1b5f53679af75a98b46f4dc7dc0f356de8ddb73 (patch) | |
tree | f95a49ccd92e7d104f4e764c0a5c41a8d5dbb68a /src/or/control.c | |
parent | 3dfeaaaf6ef977bb833672c6cce15aa71838aae0 (diff) | |
download | tor-c1b5f53679af75a98b46f4dc7dc0f356de8ddb73.tar.gz tor-c1b5f53679af75a98b46f4dc7dc0f356de8ddb73.zip |
r11938@Kushana: nickm | 2007-01-11 11:02:28 -0500
Check addresses for rfc953-saneness at exit too, and give a PROTOCOL_WARN when they fail. Also provide a mechanism to override this, so blossom can have its @@##$$^.whatever.exit hostnames if it wants.
svn:r9336
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index ea272b8686..1eca654bae 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1350,7 +1350,7 @@ handle_control_mapaddress(control_connection_t *conn, uint32_t len, const char *to = smartlist_get(elts,1); size_t anslen = strlen(line)+512; char *ans = tor_malloc(anslen); - if (address_is_invalid_destination(to)) { + if (address_is_invalid_destination(to, 1)) { if (!v0) { tor_snprintf(ans, anslen, "512-syntax error: invalid address '%s'", to); |