diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-07-16 13:44:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-15 12:03:35 -0400 |
commit | 6dd8ff0ad9cf32ab7b22d1e2c9fc24477300fa4f (patch) | |
tree | d70c147d4a808c992e1c535ca8b12c68c57a3dec /src | |
parent | e4a241af11dce61d8722b74ad41d6ea0bec44ef1 (diff) | |
download | tor-6dd8ff0ad9cf32ab7b22d1e2c9fc24477300fa4f.tar.gz tor-6dd8ff0ad9cf32ab7b22d1e2c9fc24477300fa4f.zip |
Break up <??> differently, and explain why
Diffstat (limited to 'src')
-rw-r--r-- | src/or/ext_orport.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/ext_orport.c b/src/or/ext_orport.c index cd8ab2d04e..72dbaa55a7 100644 --- a/src/or/ext_orport.c +++ b/src/or/ext_orport.c @@ -515,8 +515,11 @@ connection_ext_or_process_inbuf(or_connection_t *or_conn) /* If the transport proxy did not use the TRANSPORT command to * specify the transport name, mark this as unknown transport. */ - if (!or_conn->ext_or_transport) - or_conn->ext_or_transport = tor_strdup("<?\?>"); + if (!or_conn->ext_or_transport) { + /* We write this string this way to avoid ??>, which is a C + * trigraph. */ + or_conn->ext_or_transport = tor_strdup("<?" "?>"); + } connection_write_ext_or_command(conn, EXT_OR_CMD_BT_OKAY, NULL, 0); |