diff options
author | Isis Lovecruft <isis@torproject.org> | 2015-08-16 00:49:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-17 09:26:07 -0400 |
commit | 2e0a50abf415297a3e0e10c4147f738d3458c373 (patch) | |
tree | ef78f51611cb8dd29378ff1f2d91fa5465c4e3b9 /src/or/microdesc.c | |
parent | a053451ddf4899d35182cd18c50a13eceb27030a (diff) | |
download | tor-2e0a50abf415297a3e0e10c4147f738d3458c373.tar.gz tor-2e0a50abf415297a3e0e10c4147f738d3458c373.zip |
Remove redundant tor_free() in command_process_create_cell().
* FIXES #16823: https://bugs.torproject.org/16823
If an OP were to send a CREATE_FAST cell to an OR, and that
CREATE_FAST cell had unparseable key material, then tor_free() would
be called on the create cell twice. This fix removes the second
(conditional on the key material being bad) call to tor_free(), so
that now the create cell is always freed once, regardless of the status of
the key material.
(This isn't actually a double-free bug, since tor_free() sets its
input to NULL, and has no effect when called with input NULL.)
Diffstat (limited to 'src/or/microdesc.c')
0 files changed, 0 insertions, 0 deletions