diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-06-29 17:44:29 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-06-29 17:45:27 -0400 |
commit | 05c424f4b830e98595b33397b58504462dbda8db (patch) | |
tree | f2d36e4b49a885ba4d45c74a2e7e71a9596311a6 /autogen.sh | |
parent | 5d43a1572094868e598541f9ce686546c910f071 (diff) | |
download | tor-05c424f4b830e98595b33397b58504462dbda8db.tar.gz tor-05c424f4b830e98595b33397b58504462dbda8db.zip |
Refactor fetch_from_buf_socks() to be greedy
Previously, fetch_from_buf_socks() might return 0 if there was still
data on the buffer and a subsequent call to fetch_from_buf_socks()
would return 1. This was making some of the socks5 unit tests
harder to write, and could potentially have caused misbehavior with
some overly verbose SOCKS implementations. Now,
fetch_from_buf_socks() does as much processing as it can, and
returns 0 only if it really needs more data. This brings it into
line with the evbuffer socks implementation.
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions