Date: Fri, 27 Apr 2001 14:31:21 -0500 (CDT) From: Sean Farley <sean-freebsd@farley.org> To: <freebsd-net@freebsd.org>, <sendmail-bugs@sendmail.org> Subject: Solution: Sendmail outgoing bind() fails only PPP Message-ID: <20010427142517.K747-200000@thor.farley.org>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] I found the bug. The socket was IPv6, but the bind used an IPv4 sockaddr struct. Patch attached. Sean ----------------------- sean-freebsd@farley.org PGP key: http://www.farley.org/~sean/pgp.key [-- Attachment #2 --] --- daemon.c.orig Fri Apr 27 14:27:51 2001 +++ daemon.c Fri Apr 27 14:28:14 2001 @@ -2012,7 +2012,7 @@ } else { - s = socket(addr.sa.sa_family, SOCK_STREAM, 0); + s = socket(clt_addr.sa.sa_family, SOCK_STREAM, 0); } if (s < 0) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010427142517.K747-200000>
