mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Conditional check added
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user