]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Revert change to `gnutls_bye()` 1302/head
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 25 Jun 2025 14:05:20 +0000 (16:05 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 25 Jun 2025 14:05:20 +0000 (16:05 +0200)
The same bug is still valid in Microsoft server instances.

cups/tls-gnutls.c

index 56957ba00974c3fbf54f37f4fe916fccfd0ed5d6..718c023306faf3ad2b41fac7b3ef3ce9cd39398a 100644 (file)
@@ -1992,7 +1992,7 @@ _httpTLSStop(http_t *http)                // I - Connection to server
   int  error;                          // Error code
 
 
-  error = gnutls_bye(http->tls, http->mode == _HTTP_MODE_CLIENT ? GNUTLS_SHUT_RDWR : GNUTLS_SHUT_WR);
+  error = gnutls_bye(http->tls, GNUTLS_SHUT_WR);
   if (error != GNUTLS_E_SUCCESS)
     _cupsSetError(IPP_STATUS_ERROR_INTERNAL, gnutls_strerror(errno), 0);