stun

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

commit a9b56952c1d0b8fdcbb8b0f75a169e4c2d49249d
parent 94b530d96f7729ae6275abf7b5365fb339746c3e
Author: sin <sin@2f30.org>
Date:   Wed Apr 27 20:10:09 +0100

Set a limit on the reconnection timeout to 1 hour

Avoids elaborate integer overflow checks later on.

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