]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
common_name and credentials are swapped in tls-openssl 1031/head
authorRose <gfunni234@gmail.com>
Mon, 12 Aug 2024 13:22:47 +0000 (09:22 -0400)
committerRose <gfunni234@gmail.com>
Mon, 12 Aug 2024 13:43:44 +0000 (09:43 -0400)
cups/tls-openssl.c

index e2a8ec30bc20a29cc897cf449bc1a74956bb7eb8..763c5f818b61c16e51c9e854c8163c7ac54a3ebb 100644 (file)
@@ -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);