Close descriptor when SSL reports a system error.
Avoids leaking fd when connections are closed abruptly.
This commit is contained in:
parent
513a6582ad
commit
caf979a4c5
|
@ -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