Fix seg fault in s_time
authorMatt Caswell <matt@openssl.org>
Thu, 12 Mar 2015 16:42:55 +0000 (16:42 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 17 Mar 2015 13:48:04 +0000 (13:48 +0000)
commit6c4ce00753c5763cf836f6fec9ec07ed7c2e6e03
tree45685530ef8ace14d45bdfc1ef2b23a7abd905dc
parentfcb61b6c92ac21c51ad23e4b983600747cdd8db1
Fix seg fault in s_time

Passing a negative value for the "-time" option to s_time results in a seg
fault. This commit fixes it so that time has to be greater than 0.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit dfef52f6f277327e118fdd0fe34486852c2789b6)
apps/s_time.c