Change BUG() messages in buf_flush_to_tls() to IF_BUG_ONCE()
commit1f163fcbde4591bcb5764d6bbe0fea8aa559fc33
authorNick Mathewson <nickm@torproject.org>
Wed, 29 Jan 2020 13:31:22 +0000 (29 08:31 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 29 Jan 2020 13:31:22 +0000 (29 08:31 -0500)
tree509600bf52cd320f65ea723974849f7cd3f2061e
parent19954cffd7710ccac778aa5cf15ae1bc6a5d56fa
Change BUG() messages in buf_flush_to_tls() to IF_BUG_ONCE()

We introduced these BUG() checks in b0ddaac07428a06 to prevent a
recurrence of bug 23690.  But there's a report of the BUG() message
getting triggered and filling up the disk.  Let's change it to
IF_BUG_ONCE().

Fixes bug 33093; bugfix on 0.3.2.2-alpha.
changes/bug33093_logging [new file with mode: 0644]
src/lib/tls/buffers_tls.c