summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-06-11 00:52:52 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-06-11 00:52:52 +0200
commitfa7a37dd1b971bfb7995dadce601c93854cfa2d5 (patch)
treeabd0eececa4a074474c888d4c7546349eeb1f56b
parentCheck for 0xff before control char. (diff)
downloadtelnet-password-honeypot-fa7a37dd1b971bfb7995dadce601c93854cfa2d5.tar.xz
telnet-password-honeypot-fa7a37dd1b971bfb7995dadce601c93854cfa2d5.zip
Increase negotiation timeout.
-rw-r--r--honeypot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/honeypot.c b/honeypot.c
index be8f77f..2418c48 100644
--- a/honeypot.c
+++ b/honeypot.c
@@ -291,8 +291,8 @@ void negotiate_telnet()
/* Set the default options. */
set_options();
- /* We will stop handling options after one second */
- alarm(1);
+ /* We will stop handling options after three seconds */
+ alarm(3);
/* Let's do this */
while (!feof(stdin) && done < 1) {