From owner-freebsd-net Mon May 7 10:56:41 2001 Delivered-To: freebsd-net@freebsd.org Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178]) by hub.freebsd.org (Postfix) with ESMTP id 574AF37B422 for ; Mon, 7 May 2001 10:56:39 -0700 (PDT) (envelope-from gshapiro@gshapiro.net) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.12.0.Beta7/8.12.0.Beta7) id f47HuMQA024907; Mon, 7 May 2001 10:56:22 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15094.57798.682855.84630@horsey.gshapiro.net> Date: Mon, 7 May 2001 10:56:22 -0700 From: Gregory Neil Shapiro To: Sean Farley Cc: , Subject: Re: Solution: Sendmail outgoing bind() fails only PPP In-Reply-To: <20010427142517.K747-200000@thor.farley.org> References: <20010427142517.K747-200000@thor.farley.org> X-Mailer: VM 6.92 under 21.5 (beta0) "alfalfa" XEmacs Lucid Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org sean-freebsd> I found the bug. The socket was IPv6, but the bind used an sean-freebsd> IPv4 sockaddr struct. Patch attached. sean-freebsd> - s = socket(addr.sa.sa_family, SOCK_STREAM, 0); sean-freebsd> + s = socket(clt_addr.sa.sa_family, SOCK_STREAM, 0); Thanks for the fix. It will be part of 8.11.4. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message