1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 12:02:14 +00:00

SCP: Fix Coverity identified issues

This commit is contained in:
Mark Pizzolato
2018-09-28 20:47:54 -07:00
parent c640000b54
commit b6b457a84d
2 changed files with 4 additions and 5 deletions

View File

@@ -1204,7 +1204,7 @@ for (i = 0; i < mp->lines; i++) { /* check each line in se
free (sockname);
free (peername);
if (!lp->notelnet) {
sim_write_sock (newsock, (char *)mantra, sizeof(mantra));
sim_write_sock (lp->sock, (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);
@@ -1255,7 +1255,7 @@ for (i = 0; i < mp->lines; i++) { /* check each line in se
lp->ipad = address; /* ip address */
tmxr_init_line (lp); /* init line */
if (!lp->notelnet) {
sim_write_sock (newsock, (char *)mantra, sizeof(mantra));
sim_write_sock (lp->sock, (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);