aboutsummaryrefslogtreecommitdiff
path: root/src/or/proto_socks.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-27 18:55:14 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-27 18:55:14 -0400
commit6882e711d021875271053f1ab7a74c0654c99111 (patch)
tree4d797e802865c79ce4ac01896bd851c140b7194d /src/or/proto_socks.c
parent5418aa84eec9f08af7ab7b68cbc9145750ad0a1b (diff)
downloadtor-6882e711d021875271053f1ab7a74c0654c99111.tar.gz
tor-6882e711d021875271053f1ab7a74c0654c99111.zip
Add unit tests for SOCKS functions that parse server responses
We use these when we're acting as a SOCKS client, but we'd never actually written tests for them :/
Diffstat (limited to 'src/or/proto_socks.c')
-rw-r--r--src/or/proto_socks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/proto_socks.c b/src/or/proto_socks.c
index 3fb3a131d9..4189c0c662 100644
--- a/src/or/proto_socks.c
+++ b/src/or/proto_socks.c
@@ -699,9 +699,11 @@ parse_socks_client(const uint8_t *data, size_t datalen,
return 1;
}
- /* shouldn't get here... */
+ /* LCOV_EXCL_START */
+ /* shouldn't get here if the input state is one we know about... */
tor_assert(0);
return -1;
+ /* LCOV_EXCL_STOP */
}