]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - config.c
We shouldn't reference off the end of the display line when checking
[PuTTY.git] / config.c
index 50548eee4253e24eaac9bd6c617137f4ef9df8a7..d3d76f57e249d7a0331a58e18c6d058846950cfa 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1292,6 +1292,10 @@ void setup_config_box(struct controlbox *b, struct sesslist *sesslist,
                          'n', HELPCTX(connection_nodelay),
                          dlg_stdcheckbox_handler,
                          I(offsetof(Config,tcp_nodelay)));
+           ctrl_checkbox(s, "Enable TCP keepalives (SO_KEEPALIVE option)",
+                         'p', HELPCTX(connection_tcpkeepalive),
+                         dlg_stdcheckbox_handler,
+                         I(offsetof(Config,tcp_keepalives)));
        }
 
     }