Timeout must be positive.

MFC after:	1 week
This commit is contained in:
pjd 2011-04-20 16:36:59 +00:00
parent 488ea46b7d
commit 959bc74175

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;