Bugzilla Bug 279541: Fixed errors in code that was apparently copied NSPRPUB_PRE_4_2_CLIENT_BRANCH
authorwtchang%redhat.com
Tue, 25 Jan 2005 19:54:26 +0000
branchNSPRPUB_PRE_4_2_CLIENT_BRANCH
changeset 3254 4f37df0889ed0e886ca1f5d5a775f78767c8c87a
parent 3250 1aa68bd7cf1426f115081dc6acccda31ca863e73
child 3255 d277ae1be3ff6b6ca123c602af82006cfd1a609c
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. Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
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;