X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpip.c;h=dcfec86cebd6ca82e67665b3924bbcd4efae6689;hp=41c07256d2bca33eb3196d9c2e5f2bcacdf6c423;hb=4b0e4f2ebac2519c2e8a2034cb200dcd5bf0e532;hpb=2ad51254bcafb41daf04f708f9d37ef37d16fb49 diff --git a/src/tcpip.c b/src/tcpip.c index 41c0725..dcfec86 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -388,6 +388,7 @@ struct addrinfo *tcpip_getaddrinfo(const char *str, const char *port, else { error = getaddrinfo(host, port, &hints, &res); + *ipv6_only = -1; } if (error) return 0; @@ -1365,7 +1366,7 @@ void tcpip_close(COMSTACK h) { #if HAVE_GNUTLS_H if (sp->session) - gnutls_bye(sp->session, GNUTLS_SHUT_RDWR); + gnutls_bye(sp->session, GNUTLS_SHUT_WR); #elif HAVE_OPENSSL_SSL_H if (sp->ssl) {