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.
This commit is contained in:
Mark Pizzolato 2016-02-14 08:10:00 -08:00
parent d497aea17e
commit c1e7dfcf06

View file

@ -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 */