Now that TCP will be checked last we don't need any knowledge about other

protocols.

MFC after:	1 month
This commit is contained in:
Pawel Jakub Dawidek 2010-08-05 17:57:59 +00:00
parent 50692f84c6
commit 9bf24e1a00
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210870

View File

@ -126,11 +126,12 @@ tcp4_addr(const char *addr, struct sockaddr_in *sinp)
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);