tor

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

commit 0575a182a633429e755dc4366eced76656461d9b
parent 216456299f5ce83aabef8dd7cb80f2b3d8acd484
Author: Nick Mathewson <nickm@torproject.org>
Date:   Mon, 29 Jun 2020 13:48:25 -0400

Merge remote-tracking branch 'tor-github/pr/1697/head' into maint-0.4.2

Diffstat:
Achanges/bug33095_041 | 5+++++
Msrc/lib/log/util_bug.h | 2+-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/changes/bug33095_041 b/changes/bug33095_041 @@ -0,0 +1,5 @@ + o Minor bugfixes (logging, bug reporting): + - When logging a bug, do not say "Future instances of this warning + will be silenced" unless we are actually going to do + so. Previously we would say this whenever a BUG() check failed in + the code. Fixes bug 33095; bugfix on 0.4.1.1-alpha. diff --git a/src/lib/log/util_bug.h b/src/lib/log/util_bug.h @@ -196,7 +196,7 @@ STMT_END #define BUG(cond) \ (ASSERT_PREDICT_UNLIKELY_(cond) ? \ - (tor_bug_occurred_(SHORT_FILE__,__LINE__,__func__,"!("#cond")",1,NULL),1) \ + (tor_bug_occurred_(SHORT_FILE__,__LINE__,__func__,"!("#cond")",0,NULL),1) \ : 0) #endif /* defined(ALL_BUGS_ARE_FATAL) || ... */