[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 5865e56ec083bbccd46bf71a9343b3744f0c4ecc
Author: ArunaMaurya221B <aruna.maurya12@xxxxxxxxx>
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;
     }
   }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits