diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-24 11:50:13 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-02-24 11:53:43 +0000 |
commit | 4c8ee2a20f6525d74a6b9474310f397d355e2b10 (patch) | |
tree | c8e9c7c1dd22237ebaca58cccf05afebcad4e429 /toxcore/onion_client.c | |
parent | b2a2a0bbc7c3aac655bc9efc1c8f385adfe90a3f (diff) |
Minor cleanups: dead stores and avoiding complex macros.
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r-- | toxcore/onion_client.c | 2 |
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), |