From c1e7dfcf06871c124ddc53be231a69b902fc0fc3 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 14 Feb 2016 08:10:00 -0800 Subject: [PATCH] TMXR: Make sure all types of incoming connections properly support telnet Per line listeners also need to potentially negotiate Telnet options. Make sure that the telnet option bookkeeping info is available. --- sim_tmxr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sim_tmxr.c b/sim_tmxr.c index c4fa1320..78a622f2 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -1143,6 +1143,8 @@ for (i = 0; i < mp->lines; i++) { /* check each line in se if (!lp->notelnet) { sim_write_sock (newsock, (char *)mantra, sizeof(mantra)); tmxr_debug (TMXR_DBG_XMT, lp, "Sending", (char *)mantra, sizeof(mantra)); + lp->telnet_sent_opts = (uint8 *)realloc (lp->telnet_sent_opts, 256); + memset (lp->telnet_sent_opts, 0, 256); } tmxr_report_connection (mp, lp); lp->cnms = sim_os_msec (); /* time of connection */