stun

simple point to point tunnel
git clone git://git.2f30.org/stun.git
Log | Files | Refs | README

commit 7a031c049bb56e9cb903946dedee321c15e93bd4
parent 5191f532ca6d75b5eaf45421363e7992ff8c2519
Author: sin <sin@2f30.org>
Date:   Wed Apr 27 23:08:41 +0100

Ensure reconnection timeout is not negative

Diffstat:
parse.y | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/parse.y b/parse.y @@ -246,8 +246,8 @@ networkopts : CIPHER STRING { free($2); } | TIMEOUT NUMBER { - if ($2 > 3600) { - yyerror("reconnection timeout is too large"); + if ($2 < 0 || $2 > 3600) { + yyerror("invalid reconnection timeout"); YYERROR; } curnet.timeout = $2;