diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-30 06:12:21 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-30 06:12:21 +0000 |
commit | a5d3325c5c9e10ea94748d119069c1e90541a6e9 (patch) | |
tree | 851cf132430e046fa4bb108acd32994e0ee6622d /src | |
parent | 56c7e6015d17a3479d06d1266bec21911fe374ad (diff) | |
download | tor-a5d3325c5c9e10ea94748d119069c1e90541a6e9.tar.gz tor-a5d3325c5c9e10ea94748d119069c1e90541a6e9.zip |
Fix last patch
svn:r3031
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 0995afe27a..31bc9ba351 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -414,13 +414,14 @@ static int connection_ap_handshake_process_socks(connection_t *conn) { if (strlen(s+1) == HEX_DIGEST_LEN) { conn->chosen_exit_name = tor_malloc(HEX_DIGEST_LEN+2); *(conn->chosen_exit_name) = '$'; - strlcpy(conn->chosen_exit_name+1, HEX_DIGEST_LEN+1, s+1); + strlcpy(conn->chosen_exit_name+1, s+1, HEX_DIGEST_LEN+1); } else { conn->chosen_exit_name = tor_strdup(s+1); } *s = 0; if (!is_legal_nickname_or_hexdigest(conn->chosen_exit_name)) { - log_fn(LOG_WARN, "%s is not a legal exit node nickname; rejecting."); + log_fn(LOG_WARN, "%s is not a legal exit node nickname; rejecting.", + conn->chosen_exit_name); return -1; } } |