Explorar o código

Conditional check added

ArunaMaurya221B %!s(int64=6) %!d(string=hai) anos
pai
achega
5865e56ec0
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/or/nodelist.c

+ 3 - 0
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;
     }
   }