Bug 25756

Summary: Patch against crash caused by use of uninitialized variable in ip_output.
Product: Base System Reporter: Unicorn <Unicorn>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Unicorn 2001-03-13 01:20:00 UTC
	When ip_output called within dummynet guts it takes
	cooked mbuf ready to be sent. In ip_output() local variable 
	`struct in_ifaddr *ia' is used to evaluate outgoing i-face counters, 
	but left uninitialized. (see compiller worning)

	In previous snaps this bug don't crash system. But
	dummynet hangs sometimes for the same reason.. I guess.

How-To-Repeat: 	Send packet matches pipe rule.
Comment 1 iedowse freebsd_committer freebsd_triage 2001-03-13 11:22:52 UTC
State Changed
From-To: open->closed


This has been fixed already in revision 1.123 of ip_output.c, with 
a patch that is almost identical to yours. Thanks anyway for the 
bug report!