cvs commit: src/sys/netinet udp_usrreq.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Mar 16 18:28:10 PST 2004
dillon 2004/03/16 18:27:59 PST
DragonFly src repository
Modified files:
sys/netinet udp_usrreq.c
Log:
Fix a bug in the recent connectionless commit. When sending a UDP packet
over a connected socket but with a source address of INADDR_ANY, udp_output()
was calling in_pcbladdr() with a NULL sockaddr pointer, causing a null
pointer panic.
Construct a temporary sockaddr_in to pass to in_pcbladdr() with the foreign
address instead. in_pcbladdr() takes an address and returns the interface
source IP address that best characterizes the interface the packet will be
sent out of.
Revision Changes Path
1.16 +18 -2 src/sys/netinet/udp_usrreq.c
http://www.dragonflybsd.org/cvsweb/src/sys/netinet/udp_usrreq.c.diff?r1=1.15&r2=1.16&f=h
More information about the Commits
mailing list