]> git.sur5r.net Git - openldap/commitdiff
ITS#6673 GnuTLS hangs if you tell it to shut the read direction. Just
authorHoward Chu <hyc@openldap.org>
Sat, 16 Oct 2010 12:11:11 +0000 (12:11 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 16 Oct 2010 12:11:11 +0000 (12:11 +0000)
shut the write direction; it will all be irrelevant since the socket
will be closed immediately after.

libraries/libldap/tls_g.c

index f49147a36c98df3e34c82fc80f7931c6cd6c8ff8..f5076cdb99c90b8389a4a74def8c08eb97e62227 100644 (file)
@@ -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;
 }