From owner-freebsd-current Sun Jul 28 21:42:22 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 930D037B400 for ; Sun, 28 Jul 2002 21:42:19 -0700 (PDT) Received: from relay1.macomnet.ru (relay1.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DA4B43E4A for ; Sun, 28 Jul 2002 21:42:18 -0700 (PDT) (envelope-from maxim@FreeBSD.org) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay1.macomnet.ru (8.11.6/8.11.6) with ESMTP id g6T4gEv2407777; Mon, 29 Jul 2002 08:42:14 +0400 (MSD) Date: Mon, 29 Jul 2002 08:42:14 +0400 (MSD) From: Maxim Konovalov X-X-Sender: maxim@news1.macomnet.ru To: walt Cc: freebsd-current@FreeBSD.org Subject: Re: Removing INET6 does stop the crashes. In-Reply-To: <3D449813.7090403@hotmail.com> Message-ID: <20020729084054.I78903-100000@news1.macomnet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 18:19-0700, Jul 28, 2002, walt wrote: > After reading Scott Long's recent post I tried removing INET6 > from my kernel config and the crashes due to mozilla are now > definitely gone. [...] Please try the next patch. Index: sys/netinet/tcp_usrreq.c =================================================================== RCS file: /home/ncvs/src/sys/netinet/tcp_usrreq.c,v retrieving revision 1.78 diff -u -r1.78 tcp_usrreq.c --- sys/netinet/tcp_usrreq.c 25 Jul 2002 18:10:04 -0000 1.78 +++ sys/netinet/tcp_usrreq.c 28 Jul 2002 14:34:09 -0000 @@ -407,8 +407,10 @@ if (IN6_IS_ADDR_V4MAPPED(&sin6p->sin6_addr)) { struct sockaddr_in sin; - if ((inp->inp_flags & IN6P_IPV6_V6ONLY) != 0) - return(EINVAL); + if ((inp->inp_flags & IN6P_IPV6_V6ONLY) != 0) { + error = EINVAL; + goto out; + } in6_sin6_2_sin(&sin, sin6p); inp->inp_vflag |= INP_IPV4; %%% -- Maxim Konovalov, maxim@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message