Fix a dumb C bug in the unit tests for 9841

Fixes bug 11460; bug only affects unit tests and is not in any
released version of Tor.