diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-05-21 17:33:28 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-12 11:41:05 -0400 |
commit | bcbd3fb71e1a729f5b499a1452da7d07deeebf39 (patch) | |
tree | e549fdd59928ff4f985efe347880ce0bc1b29eba /src/test/test_socks.c | |
parent | 57342b19f5497f6e9362ae02953755df9f1f2262 (diff) | |
download | tor-bcbd3fb71e1a729f5b499a1452da7d07deeebf39.tar.gz tor-bcbd3fb71e1a729f5b499a1452da7d07deeebf39.zip |
Second phase of SOCKS5
Diffstat (limited to 'src/test/test_socks.c')
-rw-r--r-- | src/test/test_socks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_socks.c b/src/test/test_socks.c index cf34e9d435..9645ea32a0 100644 --- a/src/test/test_socks.c +++ b/src/test/test_socks.c @@ -646,7 +646,8 @@ test_socks_5_malformed_commands(void *ptr) tt_int_op(5,OP_EQ,socks->socks_version); tt_int_op(10,OP_EQ,socks->replylen); tt_int_op(5,OP_EQ,socks->reply[0]); - tt_int_op(SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED,OP_EQ,socks->reply[1]); + /* trunnel parsing will fail with -1 */ + tt_int_op(SOCKS5_GENERAL_ERROR,OP_EQ,socks->reply[1]); tt_int_op(1,OP_EQ,socks->reply[3]); done: |