diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-01-19 08:26:55 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-01-19 08:26:55 -0500 |
commit | 9023d7361d13629e0bc3de081db974a870d306b0 (patch) | |
tree | 85ea1f06a906144d51315128f8e9a38775d6b064 /src/test/test_hs_intropoint.c | |
parent | d35ca518b41a0ec2458eb5f1a0abfb2e63a67966 (diff) | |
download | tor-9023d7361d13629e0bc3de081db974a870d306b0.tar.gz tor-9023d7361d13629e0bc3de081db974a870d306b0.zip |
Fix return type in test_hs_intropoint.c
In trunnel, {struct}_encoded_len() can return negative values.
Coverity caught this as 1398957.
Diffstat (limited to 'src/test/test_hs_intropoint.c')
-rw-r--r-- | src/test/test_hs_intropoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_hs_intropoint.c b/src/test/test_hs_intropoint.c index 1d620e1ecd..770fff42d2 100644 --- a/src/test/test_hs_intropoint.c +++ b/src/test/test_hs_intropoint.c @@ -761,7 +761,7 @@ test_received_introduce1_handling(void *arg) /* Valid case. */ { cell = helper_create_introduce1_cell(); - size_t request_len = hs_cell_introduce1_encoded_len(cell); + ssize_t request_len = hs_cell_introduce1_encoded_len(cell); tt_size_op(request_len, OP_GT, 0); request = tor_malloc_zero(request_len); ssize_t encoded_len = |