Move the original log_info call out of the core of buf_shrink_freelists.
commit81affe194905147f8e7692818dad786d3421f9a7
authorRobert Ransom <rransom.8774@gmail.com>
Fri, 12 Nov 2010 11:04:07 +0000 (12 03:04 -0800)
committerRobert Ransom <rransom.8774@gmail.com>
Fri, 12 Nov 2010 11:04:07 +0000 (12 03:04 -0800)
treec8e3838ffa7d9bb2f8676f1581759437a70c7d8f
parent0a38358210df95f29fb7cfbb6ce67509b988ab4a
Move the original log_info call out of the core of buf_shrink_freelists.

Sending a log message to a control port can cause Tor to allocate a buffer,
thereby changing the length of the freelist behind buf_shrink_freelists's back,
thereby causing an assertion to fail.

Fixes bug #1125.
src/or/buffers.c