From: Rose Date: Mon, 12 Aug 2024 13:22:47 +0000 (-0400) Subject: common_name and credentials are swapped in tls-openssl X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1031%2Fhead;p=thirdparty%2Fcups.git common_name and credentials are swapped in tls-openssl --- diff --git a/cups/tls-openssl.c b/cups/tls-openssl.c index e2a8ec30bc..763c5f818b 100644 --- a/cups/tls-openssl.c +++ b/cups/tls-openssl.c @@ -829,7 +829,7 @@ cupsGetCredentialsTrust( trust = HTTP_TRUST_INVALID; } - else if (!cupsAreCredentialsValidForName(credentials, common_name)) + else if (!cupsAreCredentialsValidForName(common_name, credentials)) { // The common name does not match the issued certificate... _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("New credentials are not valid for name."), 1);