Move the original log_info call out of the core of buf_shrink_freelists.
commit6d2e02d79bf3cbd5d35fd65068485520cd6ef84b
authorRobert Ransom <rransom.8774@gmail.com>
Fri, 12 Nov 2010 08:21:03 +0000 (12 00:21 -0800)
committerRobert Ransom <rransom.8774@gmail.com>
Fri, 12 Nov 2010 10:34:51 +0000 (12 02:34 -0800)
tree3079bbdf647ceda2bc03a15999801d23e7cb244a
parent5beb8ee4e1889346dc9bec5f866b14809a2d6983
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