Messages in this thread Patch in this message |  | | | From | abob@dpd130 ... | | Subject | [PATCH] IPX oops in 2.2.1 kernel | | Date | Wed, 10 Feb 1999 17:08:54 -0500 (EST) |
| |
Seems that this was fixed in ipx_connect and ipx_recvmsg in 2.2.0-pre8, but not in ipx_sendmsg. I'm not sure this is right, but it follows what ipx_connect and ipx_recvmsg do, and it stops it from oops'ing. *shrug*
-- Daniel Drown <abob@dpd130.rh.psu.edu> --- af_ipx.c.old Wed Feb 10 14:59:10 1999 +++ af_ipx.c Wed Feb 10 17:00:38 1999 @@ -2133,8 +2133,11 @@ uaddr.sipx_port = 0; uaddr.sipx_network = 0L; #ifdef CONFIG_IPX_INTERN - memcpy(uaddr.sipx_node, sk->protinfo.af_ipx.intrfc - ->if_node, IPX_NODE_LEN); + if(sk->protinfo.af_ipx.intrfc) + memcpy(uaddr.sipx_node, sk->protinfo.af_ipx.intrfc + ->if_node,IPX_NODE_LEN); + else + return -ENETDOWN; /* Someone zonked the iface */ #endif ret = ipx_bind(sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |  |