mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 23:21:38 +01:00
Fix null-pointer-deref warning from scan-build in test_hs_service.c
This commit is contained in:
parent
d58a597a55
commit
ce3d501040
1 changed files with 3 additions and 0 deletions
|
@ -1654,6 +1654,9 @@ test_build_descriptors(void *arg)
|
|||
service->desc_current = NULL;
|
||||
|
||||
build_all_descriptors(now);
|
||||
tt_assert(service->desc_current);
|
||||
tt_assert(service->desc_current->desc);
|
||||
|
||||
hs_desc_superencrypted_data_t *superencrypted;
|
||||
superencrypted = &service->desc_current->desc->superencrypted_data;
|
||||
tt_int_op(smartlist_len(superencrypted->clients), OP_EQ, 16);
|
||||
|
|
Loading…
Add table
Reference in a new issue