]> git.ipfire.org Git - thirdparty/tor.git/commit
Don't use invalid exit values in zero length key test
authorSebastian Hahn <sebastian@torproject.org>
Fri, 6 Feb 2015 20:53:22 +0000 (21:53 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Fri, 6 Feb 2015 20:55:59 +0000 (21:55 +0100)
commitd695f7b4235bb1a54658e5a5ba2f7ce025ffda92
treeaeceabf55e5cd88a59c9e756d8471f66cb045c72
parente36faeec1d40e1f4f7ae54c798ad4492f86f594c
Don't use invalid exit values in zero length key test

Shell exit values must fall into the range of [0-255], so let's honour
this. In practice, the "exit -1" from the old code set an exit value of
255 on most systems, so let's pick that.

Fixes part of bug #14478, patch idea suggested by an anonymous
contributor. Thanks!
src/test/zero_length_keys.sh