Bug 15318

Summary: ifconfig dumps core
Product: Base System Reporter: Mike Bristow <michaelb>
Component: binAssignee: ru <ru>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.3-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Mike Bristow 1999-12-06 19:20:00 UTC
ifconfig will dump core when run with certain arguments; this is when
the struct afswtch contains a NULL function pointer which gets called.

Fix: The following patch will fix the core dump by making ifconfig notice a
NULL function pointer and exit.  It applies to FreeBSD-STABLE; I
haven't checked FreeBSD-CURRENT (other than confirming that the
behaviour is identical). 
How-To-Repeat: 
	/sbin/ifconfig foo0 ether 66:c0:4f:60:49:e1
	(with some value of foo that exists on the system)
Comment 1 ru freebsd_committer freebsd_triage 1999-12-29 13:53:30 UTC
State Changed
From-To: open->feedback

Fixed in -current (src/sbin/ifconfig/ifconfig.c,v 1.47). 


Comment 2 ru freebsd_committer freebsd_triage 1999-12-29 13:53:30 UTC
Responsible Changed
From-To: freebsd-bugs->ru

So I remember to MFC. 
Comment 3 ru freebsd_committer freebsd_triage 2000-01-11 12:34:34 UTC
State Changed
From-To: feedback->closed

Fixed in -stable (src/sbin/ifconfig/ifconfig.c,v 1.38.2.3).