| 19 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
| 20 |
|
* USA |
| 21 |
|
* |
| 22 |
< |
* $Id: s_bsd.c,v 7.254 2005/09/29 00:13:34 adx Exp $ |
| 22 |
> |
* $Id$ |
| 23 |
|
*/ |
| 24 |
|
|
| 25 |
|
#include "stdinc.h" |
| 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); |
| 366 |
|
* copy address to 'sockhost' as a string, copy it to host too |
| 367 |
|
* so we have something valid to put into error messages... |
| 368 |
|
*/ |
| 364 |
– |
new_client->localClient->port = ntohs(irn.ss_port); |
| 369 |
|
memcpy(&new_client->localClient->ip, &irn, sizeof(struct irc_ssaddr)); |
| 370 |
|
|
| 371 |
|
irc_getnameinfo((struct sockaddr*)&new_client->localClient->ip, |