From owner-cvs-all@FreeBSD.ORG Sat Nov 22 19:02:01 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF94516A4D2; Sat, 22 Nov 2003 19:02:01 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C89A43FA3; Sat, 22 Nov 2003 19:02:01 -0800 (PST) (envelope-from tmm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAN320XJ045822; Sat, 22 Nov 2003 19:02:00 -0800 (PST) (envelope-from tmm@repoman.freebsd.org) Received: (from tmm@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAN3209U045821; Sat, 22 Nov 2003 19:02:00 -0800 (PST) (envelope-from tmm) Message-Id: <200311230302.hAN3209U045821@repoman.freebsd.org> From: Thomas Moestl Date: Sat, 22 Nov 2003 19:02:00 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet in_pcb.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2003 03:02:01 -0000 tmm 2003/11/22 19:02:00 PST FreeBSD src repository Modified files: sys/netinet in_pcb.c Log: bzero() the the sockaddr used for the destination address for rtalloc_ign() in in_pcbconnect_setup() before it is filled out. Otherwise, stack junk would be left in sin_zero, which could cause host routes to be ignored because they failed the comparison in rn_match(). This should fix the wrong source address selection for connect() to 127.0.0.1, among other things. Reviewed by: sam Approved by: re (rwatson) Revision Changes Path 1.133 +1 -0 src/sys/netinet/in_pcb.c