1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Timeout must be positive.

MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2011-04-20 16:36:59 +00:00
parent aad93b043a
commit 20f32a33d2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220889

View File

@ -461,6 +461,10 @@ compression_type:
timeout_statement: TIMEOUT NUM
{
if ($2 <= 0) {
pjdlog_error("Negative or zero timeout.");
return (1);
}
switch (depth) {
case 0:
depth0_timeout = $2;