[tor-bugs] #24001 [Core Tor/Tor]: node_get_ed25519_id() should check if the microdesc ed25519 id is all zero

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Dec 20 17:43:34 UTC 2017


#24001: node_get_ed25519_id() should check if the microdesc ed25519 id is all zero
--------------------------+------------------------------------
 Reporter:  teor          |          Owner:  (none)
     Type:  defect        |         Status:  needs_revision
 Priority:  Medium        |      Milestone:  Tor: 0.3.3.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  easy intro    |  Actual Points:
Parent ID:  #23975        |         Points:  0.5
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by aruna1234):

 Replying to [comment:5 nickm]:
 > In C, doing an "if (ptr)" check on a pointer checks whether the pointer
 is NULL, not whether the memory that the pointer points to is zero.

 If that's the case then I think this would work:
 if(*(node->ri))

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24001#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list