Fix bug in verifying directory signatures with short digests
commit71862ed76325a97025339ea9348e2f527a4eb940
authorNick Mathewson <nickm@torproject.org>
Tue, 25 Jan 2011 22:15:22 +0000 (25 17:15 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 25 Jan 2011 22:15:22 +0000 (25 17:15 -0500)
treec3f1b1040082fe4f932b80272f5a6d3496d0a0b5
parent7a446e6754b21eae1b0cfe3b0cf737ac2be964a9
Fix bug in verifying directory signatures with short digests

If we got a signed digest that was shorter than the required digest
length, but longer than 20 bytes, we would accept it as long
enough.... and then immediately fail when we want to check it.

Fixes bug 2409; bug in 0.2.2.20-alpha; found by piebeer.
changes/bug2409 [new file with mode: 0644]
src/or/routerparse.c