]> git.ipfire.org Git - thirdparty/tor.git/commit
connection_or_set_identity_digest(): handle zero ed_id better
authorNick Mathewson <nickm@torproject.org>
Wed, 2 Mar 2022 14:38:58 +0000 (09:38 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 2 Mar 2022 14:38:58 +0000 (09:38 -0500)
commit33bb1c5fcac82dad438d398155f5b45ae549e21a
tree08763ec7de9b87df7f68b2ef5b357b140107157e
parentecbab95998e2f0e5c80bcd7d67633f33e96595bd
connection_or_set_identity_digest(): handle zero ed_id better

It looks like our code actually assumes (by dereferencing it in a
log call) that ed_id will _not_ be NULL, but rather will be a bunch
of zero bytes.  Refactor the code accordingly, and stop using NULL
tests on ed_id.
src/core/or/connection_or.c