Close descriptor when SSL reports a system error.
Avoids leaking fd when connections are closed abruptly.
This commit is contained in:
parent
2fd3418a9e
commit
4d7f243777
@ -1493,7 +1493,8 @@ static int SSLize(connection_t *cn, int *nc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (err2 == SSL_ERROR_SYSCALL) {
|
if (err2 == SSL_ERROR_SYSCALL) {
|
||||||
/* socked died */
|
mylog(LOG_ERROR, "Error with socket during ssl handshake.");
|
||||||
|
connection_close(cn);
|
||||||
cn->connected = CONN_ERROR;
|
cn->connected = CONN_ERROR;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user