mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 12:31:13 +01:00
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:
parent
50692f84c6
commit
9bf24e1a00
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210870
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user