From: Howard Chu Date: Sat, 16 Oct 2010 12:11:11 +0000 (+0000) Subject: ITS#6673 GnuTLS hangs if you tell it to shut the read direction. Just X-Git-Tag: MIGRATION_CVS2GIT~456 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=abe4a5f83b988b5989b14f21a00283cba4ead89b;p=openldap ITS#6673 GnuTLS hangs if you tell it to shut the read direction. Just shut the write direction; it will all be irrelevant since the socket will be closed immediately after. --- diff --git a/libraries/libldap/tls_g.c b/libraries/libldap/tls_g.c index f49147a36c..f5076cdb99 100644 --- a/libraries/libldap/tls_g.c +++ b/libraries/libldap/tls_g.c @@ -967,7 +967,7 @@ tlsg_sb_close( Sockbuf_IO_Desc *sbiod ) assert( sbiod->sbiod_pvt != NULL ); p = (struct tls_data *)sbiod->sbiod_pvt; - gnutls_bye ( p->session->session, GNUTLS_SHUT_RDWR ); + gnutls_bye ( p->session->session, GNUTLS_SHUT_WR ); return 0; }