]> git.ipfire.org Git - thirdparty/tor.git/commit
Properly refcount client_identity_key
authorSebastian Hahn <sebastian@torproject.org>
Tue, 26 Oct 2010 16:22:04 +0000 (18:22 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 26 Oct 2010 16:22:04 +0000 (18:22 +0200)
commit213139f887edd5f366108e72d77c33bcfa3f8ba9
treec53f0737feb427c77cedfca2d8b66f48cea11425
parent441241c13692051ff1b4ae86eaf472a8782cd5d6
Properly refcount client_identity_key

In a2bb0bf we started using a separate client identity key. When we are
in "public server mode" (that means not a bridge) we will use the same
key. Reusing the key without doing the proper refcounting leads to a
segfault on cleanup during shutdown. Fix that.

Also introduce an assert that triggers if our refcount falls below 0.
That should never happen.
src/common/crypto.c
src/or/router.c