Bugzilla Bug 279541: Fixed errors in code that was apparently copied
authorwtchang%redhat.com
Tue, 25 Jan 2005 19:44:07 +0000
changeset 3253 82c08aaf8d69a8906f69911e55e63de84ab5e3bd
parent 3252 dd2b865adb4e099a7cffe174975f3e1310ea5949
child 3256 54244d68a2ef7fd7e46a33aa4be42fca716340c5
push idunknown
push userunknown
push dateunknown
bugs279541, 116057
Bugzilla Bug 279541: Fixed errors in code that was apparently copied and pasted. ipv6_to_v4_tcpMethods should be ipv6_to_v4_udpMethods. The patch is contributed by Justin Wood <116057@bacon.qcc.mass.edu>. r=wtc,darin.
pr/src/io/pripv6.c
--- a/pr/src/io/pripv6.c
+++ b/pr/src/io/pripv6.c
@@ -334,21 +334,21 @@ PRStatus _pr_init_ipv6()
 	ipv6_to_v4_tcpMethods.setsocketoption = Ipv6ToIpv4SetSocketOption;
 */
 	ipv6_to_v4_udpMethods = *stubMethods;  /* first get the entire batch */
 	/* then override the ones we care about */
 	ipv6_to_v4_udpMethods.connect = Ipv6ToIpv4SocketConnect;
 	ipv6_to_v4_udpMethods.bind = Ipv6ToIpv4SocketBind;
 	ipv6_to_v4_udpMethods.sendto = Ipv6ToIpv4SocketSendTo;
 	ipv6_to_v4_udpMethods.recvfrom = Ipv6ToIpv4SocketRecvFrom;
-	ipv6_to_v4_tcpMethods.getsockname = Ipv6ToIpv4SocketGetName;
-	ipv6_to_v4_tcpMethods.getpeername = Ipv6ToIpv4SocketGetPeerName;
+	ipv6_to_v4_udpMethods.getsockname = Ipv6ToIpv4SocketGetName;
+	ipv6_to_v4_udpMethods.getpeername = Ipv6ToIpv4SocketGetPeerName;
 /*
-	ipv6_to_v4_tcpMethods.getsocketoption = Ipv6ToIpv4GetSocketOption;
-	ipv6_to_v4_tcpMethods.setsocketoption = Ipv6ToIpv4SetSocketOption;
+	ipv6_to_v4_udpMethods.getsocketoption = Ipv6ToIpv4GetSocketOption;
+	ipv6_to_v4_udpMethods.setsocketoption = Ipv6ToIpv4SetSocketOption;
 */
 	return PR_SUCCESS;
 }
 
 PR_IMPLEMENT(PRStatus) _pr_push_ipv6toipv4_layer(PRFileDesc *fd)
 {
 	PRFileDesc *ipv6_fd = NULL;