ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/s_bsd.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_bsd.c (file contents):
Revision 169 by michael, Fri Oct 21 09:37:16 2005 UTC vs.
Revision 451 by michael, Sun Feb 12 16:19:54 2006 UTC

# 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)