DragonFly commits List (threaded) for 2004-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sys/netinet udp_usrreq.c
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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]