From d6506773b51038491c59ace92f6ca0bcf53356cb Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 30 Aug 2024 07:34:04 +0200 Subject: [PATCH] tls-gnutls.c: Pass gnutls pointer to `gnutls_credentials_set()` `credentials` changed type in 2.5, now gnutls pointer, which is needed for the mentioned function, is a member of new structure which is `credentials` now, so pass `credential->creds` to the function, otherwise it crashes. Found out during running the test suite with gnutls enabled. --- cups/tls-gnutls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cups/tls-gnutls.c b/cups/tls-gnutls.c index 49cd2ed96a..ede3e37121 100644 --- a/cups/tls-gnutls.c +++ b/cups/tls-gnutls.c @@ -1717,7 +1717,7 @@ _httpTLSStart(http_t *http) // I - Connection to server } if (!status && credentials) - status = gnutls_credentials_set(http->tls, GNUTLS_CRD_CERTIFICATE, credentials); + status = gnutls_credentials_set(http->tls, GNUTLS_CRD_CERTIFICATE, credentials->creds); if (status) { -- 2.47.2