mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
Fix return type in test_hs_intropoint.c
In trunnel, {struct}_encoded_len() can return negative values. Coverity caught this as 1398957.
This commit is contained in:
parent
d35ca518b4
commit
9023d7361d
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user