tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 3d38d0ca24915fc05e770f2d5be3fd38203b5210
parent ec736f87296900d605fea491f3a41531cbc79dba
Author: teor <teor@torproject.org>
Date:   Tue, 26 Mar 2019 16:57:04 +1000

Merge branch 'maint-0.4.0'

Diffstat:
Achanges/cid1444119 | 3+++
Msrc/feature/dircommon/consdiff.c | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/changes/cid1444119 b/changes/cid1444119 @@ -0,0 +1,3 @@ + o Minor bugfixes (C correctness): + - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug 29824; + bugfix on 0.3.1.1-alpha. This is Coverity warning CID 1444119. diff --git a/src/feature/dircommon/consdiff.c b/src/feature/dircommon/consdiff.c @@ -1389,7 +1389,7 @@ consensus_diff_apply(const char *consensus, r1 = consensus_compute_digest_as_signed(consensus, consensus_len, &d1); if (BUG(r1 < 0)) - return NULL; // LCOV_EXCL_LINE + goto done; lines1 = smartlist_new(); lines2 = smartlist_new();