summaryrefslogtreecommitdiffstats
path: root/honeypot.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2013-01-18 08:45:32 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2013-01-18 08:45:32 +0100
commitbcc30f398776aeba91ca166a9347d63dcc0eabc1 (patch)
tree377ae37de1ef89d765ab7e77fbe9a4abcccf1ff8 /honeypot.c
parentUse seccomp bpf filter. (diff)
downloadtelnet-password-honeypot-bcc30f398776aeba91ca166a9347d63dcc0eabc1.tar.xz
telnet-password-honeypot-bcc30f398776aeba91ca166a9347d63dcc0eabc1.zip
Fix non-buffer overflow.
Diffstat (limited to 'honeypot.c')
-rw-r--r--honeypot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/honeypot.c b/honeypot.c
index 7b5c768..397bf29 100644
--- a/honeypot.c
+++ b/honeypot.c
@@ -270,7 +270,7 @@ void set_options()
if (telnet_options[option])
send_command(telnet_options[option], option);
}
- for (option = 0; option < sizeof(telnet_options); ++option) {
+ for (option = 0; option < sizeof(telnet_willack); ++option) {
if (telnet_willack[option])
send_command(telnet_willack[option], option);
}