Subject: bin/12326: core dump from dhclient
To: None <gnats-bugs@gnats.netbsd.org>
From: None <marmfiel@bigpond.com.au>
List: netbsd-bugs
Date: 03/04/2001 11:48:11
>Number:         12326
>Category:       bin
>Synopsis:       core dump from dhclient
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 03 15:52:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Murray Armfield
>Release:        NetBSD-1.5 and current
>Organization:
>Environment:
System: NetBSD nine.river-styx.org 1.5 NetBSD 1.5 (NINE) #2: Sat Dec 9 02:21:12 EST 2000 admin@nine.styx.id.au:/usr/src/sys/arch/i386/compile/NINE i386


>Description:
	I use a domestic cable service which uses a Nortell Networks cable modem which is essential just a dhcp relay agent. Using dhclient against this service core dumps dhclient.
>How-To-Repeat:
	use NetBSD-1.5 and telstra bigpond cable network in Australia with a Nortell networks cable modem
>Fix:
	I found a bug in common/options.c:188. *universe must be initialised as a null pointer  as there is a test to see if dhclient found a universe and with this situation, the universe name is 'agent' which is not defined. I do not know if dhclient should handle this universe here, but dhclient no longer core dumps. The nortell networks cable modem also makes use of a format string 'E' which is not handled by the client either. I don't know if its a legitimate format string. To work around this bit, I added the statement `case 'E':' at line 877 and dhclient now works with my cable modem. This only handles the issued stuff, not the saved leases read on dhclient load. I didn't bother finding this one. It works OK now.
>Release-Note:
>Audit-Trail:
>Unformatted: