Second phase of SOCKS5

This commit is contained in:
rl1987
2018-05-21 17:33:28 +02:00
committed by Nick Mathewson
parent 57342b19f5
commit bcbd3fb71e
3 changed files with 151 additions and 11 deletions
+2 -1
View File
@@ -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: