Bug 22787

Summary: telnet dumps core after connecting to a host with a long name
Product: Base System Reporter: Edwin Groothuis <mavetju>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Edwin Groothuis 2000-11-12 11:50:00 UTC
	As described in freebsd-questions last week:
	telnet dumps core when trying to connect to
	www.llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch.co.uk

Fix: Note: it will *still* crash now on systems which don't have
	MAXHOSTNAMELEN defined in sys/params.h.
How-To-Repeat: 
	[~] edwin@p6>telnet www.llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch.co.uk 80
	Trying 194.42.244.17...
	Illegal instruction (core dumped)
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2000-11-26 21:38:32 UTC
State Changed
From-To: open->closed

I corrected the definition of MAXHOSTNAMELEN in the ifdef'ed code 
as well. Thanks for the bug report.