Bug #285 » lightty-ssl_shutdown-fix.patch
connections.c (working copy) | ||
---|---|---|
1674 | 1674 |
/* ok */ |
1675 | 1675 |
break; |
1676 | 1676 |
case 0: |
1677 |
SSL_shutdown(con->ssl); |
|
1677 |
/* |
|
1678 |
* We need to get the error after SSH_shutdown, otherwise it remains |
|
1679 |
* on the error queue and causes latter false-alerts. Usually around |
|
1680 |
* SSL_write methods in network_openssl.c which results to shutdown |
|
1681 |
* of connections. |
|
1682 |
*/ |
|
1683 |
if (SSL_shutdown(con->ssl) <= 0) { |
|
1684 |
ERR_get_error(); |
|
1685 |
} |
|
1678 | 1686 |
break; |
1679 | 1687 |
default: |
1680 | 1688 |
log_error_write(srv, __FILE__, __LINE__, "sds", "SSL:", |