tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 5865e56ec083bbccd46bf71a9343b3744f0c4ecc
parent f5d89fab2525fd8a105f9f0ea9258147bf16290e
Author: ArunaMaurya221B <aruna.maurya12@gmail.com>
Date:   Fri, 22 Dec 2017 16:15:42 +0530

Conditional check added

Diffstat:
Msrc/or/nodelist.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/or/nodelist.c b/src/or/nodelist.c @@ -916,9 +916,12 @@ node_get_ed25519_id(const node_t *node) } } +/* Checking whether microdesc_ed25519() is all zero*/ if (node->md) { if (node->md->ed25519_identity_pkey) { md_pk = node->md->ed25519_identity_pkey; + if (BUG(ed25519_public_key_is_zero(md_pk))) + md_pk = NULL; } }