From owner-svn-src-all@FreeBSD.ORG Thu Aug 5 17:57:59 2010 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 BE3CC106567B; Thu, 5 Aug 2010 17:57:59 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AD02D8FC19; Thu, 5 Aug 2010 17:57:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o75Hvxqb062769; Thu, 5 Aug 2010 17:57:59 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o75Hvx0g062767; Thu, 5 Aug 2010 17:57:59 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201008051757.o75Hvx0g062767@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Thu, 5 Aug 2010 17:57:59 +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: r210870 - head/sbin/hastd 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: Thu, 05 Aug 2010 17:57:59 -0000 Author: pjd Date: Thu Aug 5 17:57:59 2010 New Revision: 210870 URL: http://svn.freebsd.org/changeset/base/210870 Log: Now that TCP will be checked last we don't need any knowledge about other protocols. MFC after: 1 month Modified: head/sbin/hastd/proto_tcp4.c Modified: head/sbin/hastd/proto_tcp4.c ============================================================================== --- head/sbin/hastd/proto_tcp4.c Thu Aug 5 17:56:41 2010 (r210869) +++ head/sbin/hastd/proto_tcp4.c Thu Aug 5 17:57:59 2010 (r210870) @@ -126,11 +126,12 @@ tcp4_addr(const char *addr, struct socka addr += 7; else if (strncasecmp(addr, "tcp://", 6) == 0) addr += 6; - else if (addr[0] != '/' && /* If this is not path... */ - strstr(addr, "://") == NULL)/* ...and has no prefix... */ - ; /* ...tcp4 is the default. */ - else - return (-1); + else { + /* + * Because TCP4 is the default assume IP or host is given without + * prefix. + */ + } sinp->sin_family = AF_INET; sinp->sin_len = sizeof(*sinp);