dir-client: bug fix and more tests
There are a couple of places where we forgot to truncate our
return-buffer to its actual size, and instead returned a big bunch
of zeros. This branch has a commit to fix that, and also a couple of commits to add tests for this and several other failing cases in tor-dirclient
.
Edited by Nick Mathewson