From: Zdenek Dohnal Date: Fri, 30 Aug 2024 05:34:04 +0000 (+0200) Subject: tls-gnutls.c: Pass gnutls pointer to `gnutls_credentials_set()` X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1040%2Fhead;p=thirdparty%2Fcups.git 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. --- 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) {