diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-17 09:28:24 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-17 09:28:33 -0500 |
commit | ce3d501040fb994bb3c7dd82b21e02648621d3f1 (patch) | |
tree | faf57748a35b9133c78c63c9b7ba24379f956fe4 /src/test/test_hs_service.c | |
parent | d58a597a55dba2ac468cbdef5172ecda1dc2344f (diff) | |
download | tor-ce3d501040fb994bb3c7dd82b21e02648621d3f1.tar.gz tor-ce3d501040fb994bb3c7dd82b21e02648621d3f1.zip |
Fix null-pointer-deref warning from scan-build in test_hs_service.c
Diffstat (limited to 'src/test/test_hs_service.c')
-rw-r--r-- | src/test/test_hs_service.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c index 79cbd2e5d4..b2aafc1cd6 100644 --- a/src/test/test_hs_service.c +++ b/src/test/test_hs_service.c @@ -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); |