Bugfix on a tor version before the refactoring in git commit cea1225199 (23 Sep 2009). Patch by "teor".
cea1225199