[tor-commits] [tor/master] Conditional check added

nickm at torproject.org nickm at torproject.org
Tue Jan 2 15:08:06 UTC 2018


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

    Conditional check added
---
 src/or/nodelist.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index e6eaefb21..042074998 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;
     }
   }
 





More information about the tor-commits mailing list