From abe4a5f83b988b5989b14f21a00283cba4ead89b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 16 Oct 2010 12:11:11 +0000 Subject: [PATCH] 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. --- libraries/libldap/tls_g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5