diff options
author | ArunaMaurya221B <aruna.maurya12@gmail.com> | 2017-12-22 16:15:42 +0530 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2017-12-24 19:43:57 +1100 |
commit | 5865e56ec083bbccd46bf71a9343b3744f0c4ecc (patch) | |
tree | 389f8e2ecf3129988cd55076f322e5c6325d073b /src/or/nodelist.c | |
parent | f5d89fab2525fd8a105f9f0ea9258147bf16290e (diff) | |
download | tor-5865e56ec083bbccd46bf71a9343b3744f0c4ecc.tar.gz tor-5865e56ec083bbccd46bf71a9343b3744f0c4ecc.zip |
Conditional check added
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r-- | src/or/nodelist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c index e6eaefb216..042074998b 100644 --- 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; } } |