🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.2bsd
Article #72

telnet bug on close followed by open (part 2)

#72
From: Steven M. Schultz
Date: Tue, 31 Jul 1990 20:53
34 lines
1318 bytes
Subject: telnet bug on close followed by open (part 2)
Index:	ucb/telnet.c 2.10BSD

Description:
	Telnet can hang when doing a close followed by a open.

Repeat-By:
	telnet> toggle options
	telnet> open foobar
	telnet> close
	telnet> open foobar

	and telnet will hang.

Fix:

	The earlier fix which changed the return value of bye() is
	still needed, the problem was that patch only fixed part
	of the problem.  The rest of the solution is to clear
	the local telnet's option list.

*** telnet.c.old	Fri Jul 27 14:25:20 1990
--- telnet.c	Tue Jul 31 13:39:39 1990
***************
*** 1984,1989 ****
--- 1984,1991 ----
  		/* reset his options */
  		for (op = hisopts; op < &hisopts[256]; op++)
  			*op = 0;
+ 		/* reset our options */
+ 		bzero(myopts, 256);
  	}
  	return 0;
  }
Technical Details
Message-ID: <56481@wlbr.IMSD.CONTEL.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!mahendo!wlbr!wlv.imsd.contel.com!sms

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!mahendo!wlbr!wlv.imsd.contel.com!sms
From: sms@wlv.imsd.contel.com (Steven M. Schultz)
Newsgroups: comp.bugs.2bsd
Subject: telnet bug on close followed by open (part 2)
Message-ID: <56481@wlbr.IMSD.CONTEL.COM>
Date: 31 Jul 90 20:53:20 GMT
Sender: news@wlbr.IMSD.CONTEL.COM
Reply-To: sms@wlv.imsd.contel.com (Steven M. Schultz)
Organization: Contel Federal Systems
Lines: 34