diff options
author | Roger Dingledine <arma@torproject.org> | 2013-04-11 02:53:26 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2013-04-11 02:53:26 -0400 |
commit | 7ed1af36716f21b19cb7895f1a8c2203990bb49f (patch) | |
tree | 80878ae09346514aaa0841dd3b3a36cacbe91ad3 /src/test/test.c | |
parent | e54a5a4f3c65dc8ab5470a91a48f500982b7d10e (diff) | |
download | tor-7ed1af36716f21b19cb7895f1a8c2203990bb49f.tar tor-7ed1af36716f21b19cb7895f1a8c2203990bb49f.tar.gz |
socks5 will ask for username/password if we offer it
Commit a264c4fe made the socks5 server prefer auth 2 if it's offered,
but it didn't update the unit test to expect it.
Diffstat (limited to 'src/test/test.c')
-rw-r--r-- | src/test/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test.c b/src/test/test.c index 1a8565aa1..08ae116af 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -362,7 +362,7 @@ test_socks_5_unsupported_commands(void *ptr) test_eq(5, socks->socks_version); test_eq(2, socks->replylen); test_eq(5, socks->reply[0]); - test_eq(0, socks->reply[1]); + test_eq(2, socks->reply[1]); ADD_DATA(buf, "\x05\x03\x00\x01\x02\x02\x02\x01\x01\x01"); test_eq(fetch_from_buf_socks(buf, socks, get_options()->TestSocks, get_options()->SafeSocks), -1); |