]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix a double-free that would occur on an invalid cert in a CERTS cell
authorNick Mathewson <nickm@torproject.org>
Fri, 28 Oct 2011 20:38:56 +0000 (16:38 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 28 Oct 2011 20:38:56 +0000 (16:38 -0400)
commitc2a098e9800edb27d6a3630337e0efa72dfa7ba2
tree01889da1b348476e5b0ff2c0eec0c9db83d1aba1
parent7a8960cf1b34d27db0ffe0929c1810800f319c86
Fix a double-free that would occur on an invalid cert in a CERTS cell

We would stash the certs in the handshake state before checking them
for validity... and then if they turned out to be invalid, we'd give
an error and free them.  Then, later, we'd free them again when we
tore down the connection.

Fixes bug 4343; fix on 0.2.3.6-alpha.
changes/bug4343 [new file with mode: 0644]
src/or/command.c