summaryrefslogtreecommitdiff
path: root/toxcore/onion_client.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-02-24 11:50:13 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-02-24 11:53:43 +0000
commit4c8ee2a20f6525d74a6b9474310f397d355e2b10 (patch)
treec8e9c7c1dd22237ebaca58cccf05afebcad4e429 /toxcore/onion_client.c
parentb2a2a0bbc7c3aac655bc9efc1c8f385adfe90a3f (diff)
Minor cleanups: dead stores and avoiding complex macros.
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r--toxcore/onion_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c
index bc16e17d..650a3dd3 100644
--- a/toxcore/onion_client.c
+++ b/toxcore/onion_client.c
@@ -845,7 +845,7 @@ static int handle_announce_response(void *object, IP_Port source, const uint8_t
845 } 845 }
846 846
847 VLA(uint8_t, plain, 1 + ONION_PING_ID_SIZE + len_nodes); 847 VLA(uint8_t, plain, 1 + ONION_PING_ID_SIZE + len_nodes);
848 int len = -1; 848 int len;
849 849
850 if (num == 0) { 850 if (num == 0) {
851 len = decrypt_data(public_key, nc_get_self_secret_key(onion_c->c), 851 len = decrypt_data(public_key, nc_get_self_secret_key(onion_c->c),