mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-28 22:36:24 +01:00
Check for EHOSTUNREACH when establishing a connection.
Reviewed by: trasz
This commit is contained in:
parent
83bbd5ebf9
commit
e3c60d1497
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256659
@ -199,6 +199,7 @@ tcpConnect(isess_t *sess)
|
||||
perror("connect");
|
||||
switch(sv_errno) {
|
||||
case ECONNREFUSED:
|
||||
case EHOSTUNREACH:
|
||||
case ENETUNREACH:
|
||||
case ETIMEDOUT:
|
||||
if((sess->flags & SESS_REDIRECT) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user