From owner-svn-src-all@FreeBSD.ORG Mon Nov 21 20:07:13 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46B8F1065674; Mon, 21 Nov 2011 20:07:13 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 369D28FC17; Mon, 21 Nov 2011 20:07:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pALK7DP4057804; Mon, 21 Nov 2011 20:07:13 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pALK7D9s057802; Mon, 21 Nov 2011 20:07:13 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201111212007.pALK7D9s057802@svn.freebsd.org> From: Gleb Smirnoff Date: Mon, 21 Nov 2011 20:07:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227801 - head/sys/netinet X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2011 20:07:13 -0000 Author: glebius Date: Mon Nov 21 20:07:12 2011 New Revision: 227801 URL: http://svn.freebsd.org/changeset/base/227801 Log: This check isn't needed now, sanity checking done in the beginning. Missed it in last commit. Modified: head/sys/netinet/in.c Modified: head/sys/netinet/in.c ============================================================================== --- head/sys/netinet/in.c Mon Nov 21 18:04:37 2011 (r227800) +++ head/sys/netinet/in.c Mon Nov 21 20:07:12 2011 (r227801) @@ -569,8 +569,7 @@ in_control(struct socket *so, u_long cmd ia->ia_dstaddr = ifra->ifra_dstaddr; maskIsNew = 1; /* We lie; but the effect's the same */ } - if (ifra->ifra_addr.sin_family == AF_INET && - (hostIsNew || maskIsNew)) + if (hostIsNew || maskIsNew) error = in_ifinit(ifp, ia, &ifra->ifra_addr, 0); if (error != 0 && iaIsNew) break;