| # | Line 258 | Line 258 | close_connection(struct Client *client_p | |
|---|---|---|
| 258 | ||
| 259 | #ifdef HAVE_LIBCRYPTO | |
| 260 | if (client_p->localClient->fd.ssl) | |
| 261 | < | SSL_shutdown(client_p->localClient->fd.ssl); |
| 261 | > | { |
| 262 | > | SSL_set_shutdown(client_p->localClient->fd.ssl, SSL_RECEIVED_SHUTDOWN); |
| 263 | > | |
| 264 | > | if (!SSL_shutdown(client_p->localClient->fd.ssl)) |
| 265 | > | SSL_shutdown(client_p->localClient->fd.ssl); |
| 266 | > | } |
| 267 | #endif | |
| 268 | if (client_p->localClient->fd.flags.open) | |
| 269 | fd_close(&client_p->localClient->fd); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |