FreeBSD Bugzilla – Attachment 172719 Details for
Bug 211225
[PATCH]: CRASH: telnetd crashes periodically
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix telnetd crash
state.c.diff (text/plain), 748 bytes, created by
Joe Marcus Clarke
on 2016-07-19 12:30:52 UTC
(
hide
)
Description:
Patch to fix telnetd crash
Filename:
MIME Type:
Creator:
Joe Marcus Clarke
Created:
2016-07-19 12:30:52 UTC
Size:
748 bytes
patch
obsolete
>--- src/contrib/telnet/telnetd/state.c.orig 2016-07-19 08:21:52.171827000 -0400 >+++ src/contrib/telnet/telnetd/state.c 2016-07-19 08:25:15.802635000 -0400 >@@ -221,14 +221,21 @@ gotiac: switch (c) { > { > cc_t ch; > >+ ch = (cc_t)(_POSIX_VDISABLE); >+ > DIAG(TD_OPTIONS, > printoption("td: recv IAC", c)); > ptyflush(); /* half-hearted */ > init_termbuf(); >- if (c == EC) >- ch = *slctab[SLC_EC].sptr; >+ if (c == EC) { >+ if (slctab[SLC_EC].sptr) { >+ ch = *slctab[SLC_EC].sptr; >+ } > else >- ch = *slctab[SLC_EL].sptr; >+ if (slctab[SLC_EL].sptr) { >+ ch = *slctab[SLC_EL].sptr; >+ } >+ } > if (ch != (cc_t)(_POSIX_VDISABLE)) > *pfrontp++ = (unsigned char)ch; > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211225
: 172719