aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-06-29 12:00:00 -0400
committerNick Mathewson <nickm@torproject.org>2011-06-29 12:12:58 -0400
commitaec396d9d0c2db18d44c9ad850bedbc01d50e40a (patch)
tree43d67b9083bafec81bd0a39b6092bc34a6bb353f /src/config
parent9b3f48c0744bd72cb8b25ac7857476181b29481a (diff)
downloadtor-aec396d9d0c2db18d44c9ad850bedbc01d50e40a.tar.gz
tor-aec396d9d0c2db18d44c9ad850bedbc01d50e40a.zip
Be more strict about when to accept socks auth message
In the code as it stood, we would accept any number of socks5 username/password authentication messages, regardless of whether we had actually negotiated username/password authentication. Instead, we should only accept one, and only if we have really negotiated username/password authentication. This patch also makes some fields of socks_request_t into uint8_t, for safety.
Diffstat (limited to 'src/config')
0 files changed, 0 insertions, 0 deletions